Add run function and make test robust and return correctly

This commit is contained in:
2020-12-29 10:10:02 -06:00
parent ea20a8cc3c
commit 240f3f5aae

8
do.sh
View File

@@ -12,9 +12,11 @@ build() {
test() { test() {
echo "I am ${FUNCNAME[0]}ing" echo "I am ${FUNCNAME[0]}ing"
_test _lint && _vet && _test
_lint }
_vet
run() {
test && go run main.go
} }
_test() { _test() {