add test file

This commit is contained in:
root committed 2018-12-05 15:14:45 +08:00
1 parent 51c3ed0e66
commit 99c61b5af1
3 files changed
+39 -1

No files matched your search

+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")
}
}