add test scripts

This commit is contained in:
Benny~ 2020-05-23 09:54:06 +08:00
parent 3d92efaef1
commit 6f2ec5d73f
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

10
scripts/unit_test.sh Normal file
View File

@ -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