mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-19 21:18:07 +02:00
fix: remove duplicate test codes. (#3187)
This commit is contained in:
parent
6286cdc947
commit
63344c3c97
@ -33,12 +33,6 @@ func TestEncodeURL(t *testing.T) {
|
|||||||
needQuery: false,
|
needQuery: false,
|
||||||
want: "http://helloworld.Greeter/helloworld/{}/sub/hello",
|
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}",
|
pathTemplate: "http://helloworld.Greeter/helloworld/{}/sub/{sub.name.cc}",
|
||||||
request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}},
|
request: &binding.HelloRequest{Name: "test", Sub: &binding.Sub{Name: "hello"}},
|
||||||
@ -69,12 +63,6 @@ func TestEncodeURL(t *testing.T) {
|
|||||||
needQuery: false,
|
needQuery: false,
|
||||||
want: "http://helloworld.Greeter/helloworld/test/sub/",
|
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",
|
pathTemplate: "http://helloworld.Greeter/helloworld/{name}/sub",
|
||||||
request: &binding.HelloRequest{Name: "go", Sub: &binding.Sub{Name: "kratos"}},
|
request: &binding.HelloRequest{Name: "go", Sub: &binding.Sub{Name: "kratos"}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user