Fix lint and format code in client/httplib dir

This commit is contained in:
loyalsoldier
2021-06-06 20:41:10 +08:00
parent ca328208cc
commit c28ae80b11
9 changed files with 13 additions and 19 deletions

View File

@@ -23,10 +23,6 @@ import (
"github.com/beego/beego/v2/client/httplib"
)
func init() {
}
func TestSimpleCondition_MatchPath(t *testing.T) {
sc := NewSimpleCondition("/abc/s")
res := sc.Match(context.Background(), httplib.Get("http://localhost:8080/abc/s"))
@@ -72,7 +68,6 @@ func TestSimpleCondition_MatchHeader(t *testing.T) {
}
func TestSimpleCondition_MatchBodyField(t *testing.T) {
sc := NewSimpleCondition("/abc/s")
req := httplib.Post("http://localhost:8080/abc/s")