From 6f2ec5d73fa08a138003372215aeed26fea63353 Mon Sep 17 00:00:00 2001 From: Benny~ Date: Sat, 23 May 2020 09:54:06 +0800 Subject: [PATCH] add test scripts --- scripts/unit_test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/unit_test.sh diff --git a/scripts/unit_test.sh b/scripts/unit_test.sh new file mode 100644 index 0000000..2900710 --- /dev/null +++ b/scripts/unit_test.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# bash scripts/unit_test.sh +# check $? for success or failure +go test -v -cover encoder_test.go encoder.go helper.go +go test -v -cover helper_test.go helper.go + +# if [[ $? -ne 0 ]] ; then +# echo "TEST FAILED!!! PLEASE DOUBLE CHECK." +# fi