test

package
v2.1.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

RunTestsRequest
TestResult
RunTestsResponse

Package test is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

RunTestsRequest
TestResult
RunTestsResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTesterHandler

func RegisterTesterHandler(s server.Server, hdlr TesterHandler, opts ...server.HandlerOption)

Types

type RunTestsRequest

type RunTestsRequest struct {
	Dry  bool              `protobuf:"varint,1,opt,name=Dry" json:"Dry,omitempty"`
	Data map[string]string `` /* 128-byte string literal not displayed */
}

func (*RunTestsRequest) Descriptor

func (*RunTestsRequest) Descriptor() ([]byte, []int)

func (*RunTestsRequest) GetData

func (m *RunTestsRequest) GetData() map[string]string

func (*RunTestsRequest) GetDry

func (m *RunTestsRequest) GetDry() bool

func (*RunTestsRequest) ProtoMessage

func (*RunTestsRequest) ProtoMessage()

func (*RunTestsRequest) Reset

func (m *RunTestsRequest) Reset()

func (*RunTestsRequest) String

func (m *RunTestsRequest) String() string

type RunTestsResponse

type RunTestsResponse struct {
	Pass    bool          `protobuf:"varint,1,opt,name=Pass" json:"Pass,omitempty"`
	Results []*TestResult `protobuf:"bytes,2,rep,name=Results" json:"Results,omitempty"`
}

func (*RunTestsResponse) Descriptor

func (*RunTestsResponse) Descriptor() ([]byte, []int)

func (*RunTestsResponse) GetPass

func (m *RunTestsResponse) GetPass() bool

func (*RunTestsResponse) GetResults

func (m *RunTestsResponse) GetResults() []*TestResult

func (*RunTestsResponse) ProtoMessage

func (*RunTestsResponse) ProtoMessage()

func (*RunTestsResponse) Reset

func (m *RunTestsResponse) Reset()

func (*RunTestsResponse) String

func (m *RunTestsResponse) String() string

type TestResult

type TestResult struct {
	Name     string   `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Pass     bool     `protobuf:"varint,2,opt,name=Pass" json:"Pass,omitempty"`
	Messages []string `protobuf:"bytes,3,rep,name=Messages" json:"Messages,omitempty"`
}

func NewTestResult

func NewTestResult(testName string) *TestResult

NewTestResult creates a new TestResult

func (*TestResult) Descriptor

func (*TestResult) Descriptor() ([]byte, []int)

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 (m *TestResult) GetMessages() []string

func (*TestResult) GetName

func (m *TestResult) GetName() string

func (*TestResult) GetPass

func (m *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) Reset

func (m *TestResult) Reset()

func (*TestResult) String

func (m *TestResult) String() string

type Tester

type Tester struct {
	TesterHandler
}

func (*Tester) Run

type TesterClient

type TesterClient interface {
	Run(ctx context.Context, in *RunTestsRequest, opts ...client.CallOption) (*RunTestsResponse, error)
}

func NewTesterClient

func NewTesterClient(serviceName string, c client.Client) TesterClient

type TesterHandler

type TesterHandler interface {
	Run(context.Context, *RunTestsRequest, *RunTestsResponse) error
}

Jump to

Keyboard shortcuts

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