Documentation ¶
Index ¶
- Variables
- func DeregisterTesterEnhancedServer(s grpc.ServiceRegistrar, name string)
- func RegisterTesterEnhancedServer(s grpc.ServiceRegistrar, srv NamedTesterServer)
- func RegisterTesterServer(s grpc.ServiceRegistrar, srv TesterServer)
- type NamedTesterServer
- type RunTestsRequest
- func (*RunTestsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RunTestsRequest) GetData() map[string]string
- func (x *RunTestsRequest) GetDry() bool
- func (*RunTestsRequest) ProtoMessage()
- func (x *RunTestsRequest) ProtoReflect() protoreflect.Message
- func (x *RunTestsRequest) Reset()
- func (x *RunTestsRequest) String() string
- func (this *RunTestsRequest) Validate() error
- type RunTestsResponse
- func (*RunTestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RunTestsResponse) GetPass() bool
- func (x *RunTestsResponse) GetResults() []*TestResult
- func (*RunTestsResponse) ProtoMessage()
- func (x *RunTestsResponse) ProtoReflect() protoreflect.Message
- func (x *RunTestsResponse) Reset()
- func (x *RunTestsResponse) String() string
- func (this *RunTestsResponse) Validate() error
- type TestResult
- func (*TestResult) Descriptor() ([]byte, []int)deprecated
- func (t *TestResult) Fail(msg string, objects ...interface{})
- func (x *TestResult) GetMessages() []string
- func (x *TestResult) GetName() string
- func (x *TestResult) GetPass() bool
- func (t *TestResult) Log(msg string, objects ...interface{})
- func (*TestResult) ProtoMessage()
- func (x *TestResult) ProtoReflect() protoreflect.Message
- func (x *TestResult) Reset()
- func (x *TestResult) String() string
- func (this *TestResult) Validate() error
- type TesterClient
- type TesterEnhancedServer
- type TesterServer
- type UnimplementedTesterServer
- type UnsafeTesterServer
Constants ¶
This section is empty.
Variables ¶
var File_cells_test_proto protoreflect.FileDescriptor
var Tester_ServiceDesc = grpc.ServiceDesc{ ServiceName: "test.Tester", HandlerType: (*TesterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Run", Handler: _Tester_Run_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cells-test.proto", }
Tester_ServiceDesc is the grpc.ServiceDesc for Tester service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func DeregisterTesterEnhancedServer ¶
func DeregisterTesterEnhancedServer(s grpc.ServiceRegistrar, name string)
func RegisterTesterEnhancedServer ¶
func RegisterTesterEnhancedServer(s grpc.ServiceRegistrar, srv NamedTesterServer)
func RegisterTesterServer ¶
func RegisterTesterServer(s grpc.ServiceRegistrar, srv TesterServer)
Types ¶
type NamedTesterServer ¶
type NamedTesterServer interface { TesterServer Name() string }
type RunTestsRequest ¶
type RunTestsRequest struct { Dry bool `protobuf:"varint,1,opt,name=Dry,proto3" json:"Dry,omitempty"` Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RunTestsRequest) Descriptor
deprecated
func (*RunTestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use RunTestsRequest.ProtoReflect.Descriptor instead.
func (*RunTestsRequest) GetData ¶
func (x *RunTestsRequest) GetData() map[string]string
func (*RunTestsRequest) GetDry ¶
func (x *RunTestsRequest) GetDry() bool
func (*RunTestsRequest) ProtoMessage ¶
func (*RunTestsRequest) ProtoMessage()
func (*RunTestsRequest) ProtoReflect ¶
func (x *RunTestsRequest) ProtoReflect() protoreflect.Message
func (*RunTestsRequest) Reset ¶
func (x *RunTestsRequest) Reset()
func (*RunTestsRequest) String ¶
func (x *RunTestsRequest) String() string
func (*RunTestsRequest) Validate ¶
func (this *RunTestsRequest) Validate() error
type RunTestsResponse ¶
type RunTestsResponse struct { Pass bool `protobuf:"varint,1,opt,name=Pass,proto3" json:"Pass,omitempty"` Results []*TestResult `protobuf:"bytes,2,rep,name=Results,proto3" json:"Results,omitempty"` // contains filtered or unexported fields }
func (*RunTestsResponse) Descriptor
deprecated
func (*RunTestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use RunTestsResponse.ProtoReflect.Descriptor instead.
func (*RunTestsResponse) GetPass ¶
func (x *RunTestsResponse) GetPass() bool
func (*RunTestsResponse) GetResults ¶
func (x *RunTestsResponse) GetResults() []*TestResult
func (*RunTestsResponse) ProtoMessage ¶
func (*RunTestsResponse) ProtoMessage()
func (*RunTestsResponse) ProtoReflect ¶
func (x *RunTestsResponse) ProtoReflect() protoreflect.Message
func (*RunTestsResponse) Reset ¶
func (x *RunTestsResponse) Reset()
func (*RunTestsResponse) String ¶
func (x *RunTestsResponse) String() string
func (*RunTestsResponse) Validate ¶
func (this *RunTestsResponse) Validate() error
type TestResult ¶
type TestResult struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Pass bool `protobuf:"varint,2,opt,name=Pass,proto3" json:"Pass,omitempty"` Messages []string `protobuf:"bytes,3,rep,name=Messages,proto3" json:"Messages,omitempty"` // contains filtered or unexported fields }
func NewTestResult ¶
func NewTestResult(testName string) *TestResult
NewTestResult creates a new TestResult
func (*TestResult) Descriptor
deprecated
func (*TestResult) Descriptor() ([]byte, []int)
Deprecated: Use TestResult.ProtoReflect.Descriptor instead.
func (*TestResult) Fail ¶
func (t *TestResult) Fail(msg string, objects ...interface{})
Fail send result.Pass to false and appends message and json serialized version of objects in result
func (*TestResult) GetMessages ¶
func (x *TestResult) GetMessages() []string
func (*TestResult) GetName ¶
func (x *TestResult) GetName() string
func (*TestResult) GetPass ¶
func (x *TestResult) GetPass() bool
func (*TestResult) Log ¶
func (t *TestResult) Log(msg string, objects ...interface{})
Log appends message and json serialized version of objects in result
func (*TestResult) ProtoMessage ¶
func (*TestResult) ProtoMessage()
func (*TestResult) ProtoReflect ¶
func (x *TestResult) ProtoReflect() protoreflect.Message
func (*TestResult) Reset ¶
func (x *TestResult) Reset()
func (*TestResult) String ¶
func (x *TestResult) String() string
func (*TestResult) Validate ¶
func (this *TestResult) Validate() error
type TesterClient ¶
type TesterClient interface {
Run(ctx context.Context, in *RunTestsRequest, opts ...grpc.CallOption) (*RunTestsResponse, error)
}
TesterClient is the client API for Tester service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTesterClient ¶
func NewTesterClient(cc grpc.ClientConnInterface) TesterClient
type TesterEnhancedServer ¶
type TesterEnhancedServer map[string]NamedTesterServer
func (TesterEnhancedServer) Run ¶
func (m TesterEnhancedServer) Run(ctx context.Context, r *RunTestsRequest) (*RunTestsResponse, error)
type TesterServer ¶
type TesterServer interface { Run(context.Context, *RunTestsRequest) (*RunTestsResponse, error) // contains filtered or unexported methods }
TesterServer is the server API for Tester service. All implementations must embed UnimplementedTesterServer for forward compatibility
type UnimplementedTesterServer ¶
type UnimplementedTesterServer struct { }
UnimplementedTesterServer must be embedded to have forward compatible implementations.
func (UnimplementedTesterServer) Run ¶
func (UnimplementedTesterServer) Run(context.Context, *RunTestsRequest) (*RunTestsResponse, error)
type UnsafeTesterServer ¶
type UnsafeTesterServer interface {
// contains filtered or unexported methods
}
UnsafeTesterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TesterServer will result in compilation errors.