add test file

This commit is contained in:
Jay
2018-12-05 15:14:45 +08:00
parent 51c3ed0e66
commit 99c61b5af1
3 changed files with 39 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package apimsg
import (
"testing"
)
func TestGetRes(t *testing.T) {
res := GetRes("Success", nil)
if res.Status != 200 {
t.Error("Status Code not match")
}
}