Skip to content

Commit

Permalink
fix: remove duplicate test codes. (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvii authored Mar 15, 2024
1 parent 6286cdc commit 63344c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions transport/http/binding/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ func TestEncodeURL(t *testing.T) {
needQuery: false,
want: "http://helloworld.Greeter/helloworld/{}/sub/hello",
},
{
pathTemplate: "http://helloworld.Greeter/helloworld/{}/sub/{sub.naming}",
request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}},
needQuery: false,
want: "http://helloworld.Greeter/helloworld/{}/sub/hello",
},
{
pathTemplate: "http://helloworld.Greeter/helloworld/{}/sub/{sub.name.cc}",
request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}},
Expand Down Expand Up @@ -69,12 +63,6 @@ func TestEncodeURL(t *testing.T) {
needQuery: false,
want: "http://helloworld.Greeter/helloworld/test/sub/",
},
{
pathTemplate: "http://helloworld.Greeter/helloworld/{name}/sub/{sub.name}",
request: &binding.HelloRequest{Name: "test"},
needQuery: false,
want: "http://helloworld.Greeter/helloworld/test/sub/",
},
{
pathTemplate: "http://helloworld.Greeter/helloworld/{name}/sub",
request: &binding.HelloRequest{Name: "go", Sub: &binding.Sub{Name: "kratos"}},
Expand Down

0 comments on commit 63344c3

Please sign in to comment.