Method 'Test_server_Exists' differs only by capitalization to function 'Test_server_exists' in the same source file
252 }
253}
254
255func Test_server_Exists(t *testing.T) { 256 type args struct {
257 ctx context.Context
258 meta *payload.Object_ID
Method 'Test_server_GetObject' differs only by capitalization to function 'Test_server_getObject' in the same source file
3898 }
3899}
3900
3901func Test_server_GetObject(t *testing.T) {3902 type args struct {
3903 ctx context.Context
3904 req *payload.Object_VectorRequest
Method 'Exists' differs only by capitalization to method 'exists' in the same source file
204 return id, nil
205}
206
207func (s *server) Exists(ctx context.Context, meta *payload.Object_ID) (id *payload.Object_ID, err error) { 208 ctx, span := trace.StartSpan(grpc.WithGRPCMethod(ctx, vald.PackageName+"."+vald.ObjectRPCServiceName+"/"+vald.ExistsRPCName), apiName+"/"+vald.ExistsRPCName)
209 defer func() {
210 if span != nil {
Method 'GetObject' differs only by capitalization to method 'getObject' in the same source file
2892 return vec, nil
2893}
2894
2895func (s *server) GetObject(ctx context.Context, req *payload.Object_VectorRequest) (vec *payload.Object_Vector, err error) {2896 ctx, span := trace.StartSpan(grpc.WithGRPCMethod(ctx, vald.PackageName+"."+vald.ObjectRPCServiceName+"/"+vald.GetObjectRPCName), apiName+"/"+vald.GetObjectRPCName)
2897 defer func() {
2898 if span != nil {
Method 'Test_pool_Len' differs only by capitalization to function 'Test_pool_len' in the same source file
3030 }
3031}
3032
3033func Test_pool_Len(t *testing.T) {3034 type fields struct {
3035 pool []atomic.Pointer[poolConn]
3036 startPort uint16
Method 'Len' differs only by capitalization to method 'len' in the same source file
587 return p.getHealthyConn(ctx, cnt, retry)
588}
589
590func (p *pool) Len() uint64 {591 return uint64(p.len())
592}
593
Method 'Test_grpcConns_Load' differs only by capitalization to function 'Test_grpcConns_load' in the same source file
207 }
208}
209
210func Test_grpcConns_Load(t *testing.T) { 211 type args struct {
212 key string
213 }
Method 'Load' differs only by capitalization to method 'load' in the same source file
64 return read
65}
66
67func (m *grpcConns) Load(key string) (value pool.Conn, ok bool) { 68 read := m.load()
69 e, ok := read.m[key]
70 if !ok && read.amended {
Description
Methods or fields of struct that have names different only by capitalization could be confusing.
Bad practice
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
buildSystem string
// name of the build system to use
BuildSystem string
}
Recommended
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
internalBuildSystem string
// name of the build system to use
BuildSystem string
}