mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-02 19:57:35 +03:00
24 lines
470 B
Bash
Executable file
24 lines
470 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Verify that no non-test files import Ginkgo or Gomega.
|
|
|
|
set -e
|
|
|
|
HAS_TESTING=false
|
|
|
|
cd ..
|
|
for f in $(find . -name "*.go" ! -name "*_test.go" ! -name "tools.go"); do
|
|
if grep -q "github.com/onsi/ginkgo" $f; then
|
|
echo "$f imports github.com/onsi/ginkgo/v2"
|
|
HAS_TESTING=true
|
|
fi
|
|
if grep -q "github.com/onsi/gomega" $f; then
|
|
echo "$f imports github.com/onsi/gomega"
|
|
HAS_TESTING=true
|
|
fi
|
|
done
|
|
|
|
if "$HAS_TESTING"; then
|
|
exit 1
|
|
fi
|
|
exit 0
|