Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format code #1266

Merged
merged 1 commit into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/filter/ingress/tensorflow/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ import (
)

func Test_main(t *testing.T) {
type want struct {
}
type want struct{}
type test struct {
name string
want want
Expand Down
8 changes: 1 addition & 7 deletions hack/helm/schema/crd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import (
)

func Test_main(t *testing.T) {
type want struct {
}
type want struct{}
type test struct {
name string
want want
Expand Down Expand Up @@ -153,7 +152,6 @@ func Test_genSchema(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -230,7 +228,6 @@ func Test_objectProperties(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -307,7 +304,6 @@ func Test_genNode(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -380,7 +376,6 @@ func Test_newSpec(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -456,7 +451,6 @@ func Test_indent(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
5 changes: 0 additions & 5 deletions internal/client/v1/client/agent/core/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,6 @@ func TestNewAgentClient(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -703,7 +702,6 @@ func Test_singleAgentClient_CreateIndex(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -803,7 +801,6 @@ func Test_singleAgentClient_SaveIndex(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -903,7 +900,6 @@ func Test_singleAgentClient_CreateAndSaveIndex(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -1003,7 +999,6 @@ func Test_singleAgentClient_IndexInfo(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
25 changes: 0 additions & 25 deletions internal/client/v1/client/vald/vald_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,6 @@ func TestNewValdClient(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -2607,7 +2606,6 @@ func Test_singleClient_Start(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -2693,7 +2691,6 @@ func Test_singleClient_Stop(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -2769,7 +2766,6 @@ func Test_singleClient_GRPCClient(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -2865,7 +2861,6 @@ func Test_singleClient_Exists(t *testing.T) {
if err := test.checkFunc(test.want, gotOid, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -2961,7 +2956,6 @@ func Test_singleClient_Search(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3057,7 +3051,6 @@ func Test_singleClient_SearchByID(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3150,7 +3143,6 @@ func Test_singleClient_StreamSearch(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3243,7 +3235,6 @@ func Test_singleClient_StreamSearchByID(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3339,7 +3330,6 @@ func Test_singleClient_MultiSearch(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3435,7 +3425,6 @@ func Test_singleClient_MultiSearchByID(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3531,7 +3520,6 @@ func Test_singleClient_Insert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3624,7 +3612,6 @@ func Test_singleClient_StreamInsert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3720,7 +3707,6 @@ func Test_singleClient_MultiInsert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3816,7 +3802,6 @@ func Test_singleClient_Update(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -3909,7 +3894,6 @@ func Test_singleClient_StreamUpdate(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4005,7 +3989,6 @@ func Test_singleClient_MultiUpdate(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4101,7 +4084,6 @@ func Test_singleClient_Upsert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4194,7 +4176,6 @@ func Test_singleClient_StreamUpsert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4290,7 +4271,6 @@ func Test_singleClient_MultiUpsert(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4386,7 +4366,6 @@ func Test_singleClient_Remove(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4479,7 +4458,6 @@ func Test_singleClient_StreamRemove(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4575,7 +4553,6 @@ func Test_singleClient_MultiRemove(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4671,7 +4648,6 @@ func Test_singleClient_GetObject(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -4764,7 +4740,6 @@ func Test_singleClient_StreamGetObject(t *testing.T) {
if err := test.checkFunc(test.want, gotRes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
8 changes: 0 additions & 8 deletions internal/compress/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func TestMockCompressor_CompressVector(t *testing.T) {
if err := test.checkFunc(test.want, gotBytes, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -223,7 +222,6 @@ func TestMockCompressor_DecompressVector(t *testing.T) {
if err := test.checkFunc(test.want, gotVector, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -325,7 +323,6 @@ func TestMockCompressor_Reader(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -427,7 +424,6 @@ func TestMockCompressor_Writer(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -521,7 +517,6 @@ func TestMockReadCloser_Read(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -601,7 +596,6 @@ func TestMockReadCloser_Close(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -695,7 +689,6 @@ func TestMockWriteCloser_Write(t *testing.T) {
if err := test.checkFunc(test.want, got, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -775,7 +768,6 @@ func TestMockWriteCloser_Close(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Loading