test

package
v4.3.1-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cells_test_proto protoreflect.FileDescriptor
View Source
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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL