1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-12 02:28:05 +02:00

chore: remove non-existent test methods (#2770)

This commit is contained in:
jessetang 2024-09-09 11:11:08 +08:00 committed by GitHub
parent 6963a8a438
commit 908e6256a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View File

@ -42,6 +42,15 @@ func (x *mockCallOption) after(_ *callInfo, _ *csAttempt) {
log.Println("run in mockCallOption.after")
}
func TestWithSubset(t *testing.T) {
co := &clientOptions{}
o := WithSubset(1)
o(co)
if co.subsetSize != 1 {
t.Error("expected subset size to be 1")
}
}
func TestWithTransport(t *testing.T) {
ov := &mockRoundTripper{}
o := WithTransport(ov)
@ -71,10 +80,6 @@ func TestWithBlock(t *testing.T) {
}
}
func TestWithBalancer(_ *testing.T) {
// TODO
}
func TestWithTLSConfig(t *testing.T) {
ov := &tls.Config{}
o := WithTLSConfig(ov)

View File

@ -308,10 +308,6 @@ func TestTimeout(t *testing.T) {
}
}
func TestLogger(_ *testing.T) {
// TODO
}
func TestRequestDecoder(t *testing.T) {
o := &Server{}
v := func(*http.Request, interface{}) error { return nil }