Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 399 Bytes
#!/bin/bash
set -e -u -o pipefail
if grep 'Test[[:lower:]]' ./*_test.go; then
echo "Bad test name, it won't be run" >&2
exit 1
fi
files="$(gofmt -l ./*.go)"
if [[ -n "${files}" ]]; then
echo "Badly-formatted files: ${files}" >&2
echo "Fix with:" >&2
echo "$ gofmt -w ${files}" >&2
exit 1
fi
# Coverage runs tests, so there's no need to run them separately.
PRESUBMIT_MODE=1 gocover
You can’t perform that action at this time.