Less verbose

This commit is contained in:
Deepak Mallubhotla 2020-12-29 10:12:03 -06:00
parent 240f3f5aae
commit 52646fbfb7
Signed by: deepak
GPG Key ID: 64BF53A3369104E7

4
do.sh
View File

@ -11,7 +11,6 @@ build() {
} }
test() { test() {
echo "I am ${FUNCNAME[0]}ing"
_lint && _vet && _test _lint && _vet && _test
} }
@ -20,17 +19,14 @@ run() {
} }
_test() { _test() {
echo "I am ${FUNCNAME[0]}ing"
go test -v -coverprofile=coverage.out -covermode count ./... | tee tests.out go test -v -coverprofile=coverage.out -covermode count ./... | tee tests.out
} }
_lint() { _lint() {
echo "I am ${FUNCNAME[0]}ing"
golint -set_exit_status ./... golint -set_exit_status ./...
} }
_vet() { _vet() {
echo "I am ${FUNCNAME[0]}ing"
go vet ./... go vet ./...
} }