1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 15:52:27 +08:00

test: add some unit test function for convertor, random, slice, and formatter

This commit is contained in:
dudaodong
2021-11-29 17:27:02 +08:00
parent fee6cb17f3
commit f2ed3c6270
8 changed files with 92 additions and 56 deletions

View File

@@ -11,6 +11,11 @@ import (
)
func TestHttpGet(t *testing.T) {
_, e := HttpGet("", nil)
if e == nil {
t.FailNow()
}
url := "https://gutendex.com/books?"
queryParams := make(map[string]interface{})
queryParams["ids"] = "1"