extend test case
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
4237630f98
commit
ce49e7d867
12
http_test.go
12
http_test.go
@ -1,6 +1,8 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@ -17,7 +19,15 @@ func TestValidPath(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
_, _ = p, m
|
||||
u, err := url.Parse(p)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
_ = m
|
||||
parts := strings.Split(u.RawQuery, "&")
|
||||
if len(parts) != 3 {
|
||||
t.Fatalf("invalid path: %v", parts)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInvalidPath(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user