tests

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTProtocol

type MockTProtocol struct {
	// contains filtered or unexported fields
}

Mock of TProtocol interface

func NewMockTProtocol

func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol

func (*MockTProtocol) EXPECT

func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder

func (*MockTProtocol) Flush

func (_m *MockTProtocol) Flush(ctx context.Context) error

func (*MockTProtocol) ReadBinary

func (_m *MockTProtocol) ReadBinary() ([]byte, error)

func (*MockTProtocol) ReadBool

func (_m *MockTProtocol) ReadBool() (bool, error)

func (*MockTProtocol) ReadByte

func (_m *MockTProtocol) ReadByte() (int8, error)

func (*MockTProtocol) ReadDouble

func (_m *MockTProtocol) ReadDouble() (float64, error)

func (*MockTProtocol) ReadFieldBegin

func (_m *MockTProtocol) ReadFieldBegin() (string, thrift.TType, int16, error)

func (*MockTProtocol) ReadFieldEnd

func (_m *MockTProtocol) ReadFieldEnd() error

func (*MockTProtocol) ReadI16

func (_m *MockTProtocol) ReadI16() (int16, error)

func (*MockTProtocol) ReadI32

func (_m *MockTProtocol) ReadI32() (int32, error)

func (*MockTProtocol) ReadI64

func (_m *MockTProtocol) ReadI64() (int64, error)

func (*MockTProtocol) ReadListBegin

func (_m *MockTProtocol) ReadListBegin() (thrift.TType, int, error)

func (*MockTProtocol) ReadListEnd

func (_m *MockTProtocol) ReadListEnd() error

func (*MockTProtocol) ReadMapBegin

func (_m *MockTProtocol) ReadMapBegin() (thrift.TType, thrift.TType, int, error)

func (*MockTProtocol) ReadMapEnd

func (_m *MockTProtocol) ReadMapEnd() error

func (*MockTProtocol) ReadMessageBegin

func (_m *MockTProtocol) ReadMessageBegin() (string, thrift.TMessageType, int32, error)

func (*MockTProtocol) ReadMessageEnd

func (_m *MockTProtocol) ReadMessageEnd() error

func (*MockTProtocol) ReadSetBegin

func (_m *MockTProtocol) ReadSetBegin() (thrift.TType, int, error)

func (*MockTProtocol) ReadSetEnd

func (_m *MockTProtocol) ReadSetEnd() error

func (*MockTProtocol) ReadString

func (_m *MockTProtocol) ReadString() (string, error)

func (*MockTProtocol) ReadStructBegin

func (_m *MockTProtocol) ReadStructBegin() (string, error)

func (*MockTProtocol) ReadStructEnd

func (_m *MockTProtocol) ReadStructEnd() error

func (*MockTProtocol) Skip

func (_m *MockTProtocol) Skip(_param0 thrift.TType) error

func (*MockTProtocol) Transport

func (_m *MockTProtocol) Transport() thrift.TTransport

func (*MockTProtocol) WriteBinary

func (_m *MockTProtocol) WriteBinary(_param0 []byte) error

func (*MockTProtocol) WriteBool

func (_m *MockTProtocol) WriteBool(_param0 bool) error

func (*MockTProtocol) WriteByte

func (_m *MockTProtocol) WriteByte(_param0 int8) error

func (*MockTProtocol) WriteDouble

func (_m *MockTProtocol) WriteDouble(_param0 float64) error

func (*MockTProtocol) WriteFieldBegin

func (_m *MockTProtocol) WriteFieldBegin(_param0 string, _param1 thrift.TType, _param2 int16) error

func (*MockTProtocol) WriteFieldEnd

func (_m *MockTProtocol) WriteFieldEnd() error

func (*MockTProtocol) WriteFieldStop

func (_m *MockTProtocol) WriteFieldStop() error

func (*MockTProtocol) WriteI16

func (_m *MockTProtocol) WriteI16(_param0 int16) error

func (*MockTProtocol) WriteI32

func (_m *MockTProtocol) WriteI32(_param0 int32) error

func (*MockTProtocol) WriteI64

func (_m *MockTProtocol) WriteI64(_param0 int64) error

func (*MockTProtocol) WriteListBegin

func (_m *MockTProtocol) WriteListBegin(_param0 thrift.TType, _param1 int) error

func (*MockTProtocol) WriteListEnd

func (_m *MockTProtocol) WriteListEnd() error

func (*MockTProtocol) WriteMapBegin

func (_m *MockTProtocol) WriteMapBegin(_param0 thrift.TType, _param1 thrift.TType, _param2 int) error

func (*MockTProtocol) WriteMapEnd

func (_m *MockTProtocol) WriteMapEnd() error

func (*MockTProtocol) WriteMessageBegin

func (_m *MockTProtocol) WriteMessageBegin(_param0 string, _param1 thrift.TMessageType, _param2 int32) error

func (*MockTProtocol) WriteMessageEnd

func (_m *MockTProtocol) WriteMessageEnd() error

func (*MockTProtocol) WriteSetBegin

func (_m *MockTProtocol) WriteSetBegin(_param0 thrift.TType, _param1 int) error

func (*MockTProtocol) WriteSetEnd

func (_m *MockTProtocol) WriteSetEnd() error

func (*MockTProtocol) WriteString

func (_m *MockTProtocol) WriteString(_param0 string) error

func (*MockTProtocol) WriteStructBegin

func (_m *MockTProtocol) WriteStructBegin(_param0 string) error

func (*MockTProtocol) WriteStructEnd

func (_m *MockTProtocol) WriteStructEnd() error

type SecondServiceHandler

type SecondServiceHandler struct {
}

func NewSecondServiceHandler

func NewSecondServiceHandler() *SecondServiceHandler

func (*SecondServiceHandler) BlahBlah

func (p *SecondServiceHandler) BlahBlah(ctx context.Context) (err error)

func (*SecondServiceHandler) SecondtestString

func (p *SecondServiceHandler) SecondtestString(ctx context.Context, thing string) (r string, err error)

type ThriftTestDriver

type ThriftTestDriver struct {
	// contains filtered or unexported fields
}

func NewThriftTestDriver

func NewThriftTestDriver(t *testing.T, client thrifttest.ThriftTest) *ThriftTestDriver

func (*ThriftTestDriver) Start

func (p *ThriftTestDriver) Start()

type ThriftTestHandler

type ThriftTestHandler struct {
}

func NewThriftTestHandler

func NewThriftTestHandler() *ThriftTestHandler

func (*ThriftTestHandler) TestBinary

func (p *ThriftTestHandler) TestBinary(ctx context.Context, thing []byte) (r []byte, err error)

func (*ThriftTestHandler) TestBool

func (p *ThriftTestHandler) TestBool(ctx context.Context, thing bool) (r bool, err error)

func (*ThriftTestHandler) TestByte

func (p *ThriftTestHandler) TestByte(ctx context.Context, thing int8) (r int8, err error)

func (*ThriftTestHandler) TestDouble

func (p *ThriftTestHandler) TestDouble(ctx context.Context, thing float64) (r float64, err error)

func (*ThriftTestHandler) TestEnum

func (p *ThriftTestHandler) TestEnum(ctx context.Context, thing thrifttest.Numberz) (r thrifttest.Numberz, err error)

func (*ThriftTestHandler) TestException

func (p *ThriftTestHandler) TestException(ctx context.Context, arg string) (err error)

func (*ThriftTestHandler) TestI32

func (p *ThriftTestHandler) TestI32(ctx context.Context, thing int32) (r int32, err error)

func (*ThriftTestHandler) TestI64

func (p *ThriftTestHandler) TestI64(ctx context.Context, thing int64) (r int64, err error)

func (*ThriftTestHandler) TestInsanity

func (p *ThriftTestHandler) TestInsanity(ctx context.Context, argument *thrifttest.Insanity) (r map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, err error)

func (*ThriftTestHandler) TestList

func (p *ThriftTestHandler) TestList(ctx context.Context, thing []int32) (r []int32, err error)

func (*ThriftTestHandler) TestMap

func (p *ThriftTestHandler) TestMap(ctx context.Context, thing map[int32]int32) (r map[int32]int32, err error)

func (*ThriftTestHandler) TestMapMap

func (p *ThriftTestHandler) TestMapMap(ctx context.Context, hello int32) (r map[int32]map[int32]int32, err error)

func (*ThriftTestHandler) TestMulti

func (p *ThriftTestHandler) TestMulti(ctx context.Context, arg0 int8, arg1 int32, arg2 int64, arg3 map[int16]string, arg4 thrifttest.Numberz, arg5 thrifttest.UserId) (r *thrifttest.Xtruct, err error)

func (*ThriftTestHandler) TestMultiException

func (p *ThriftTestHandler) TestMultiException(ctx context.Context, arg0 string, arg1 string) (r *thrifttest.Xtruct, err error)

func (*ThriftTestHandler) TestNest

func (p *ThriftTestHandler) TestNest(ctx context.Context, thing *thrifttest.Xtruct2) (r *thrifttest.Xtruct2, err error)

func (*ThriftTestHandler) TestOneway

func (p *ThriftTestHandler) TestOneway(ctx context.Context, secondsToSleep int32) (err error)

func (*ThriftTestHandler) TestSet

func (p *ThriftTestHandler) TestSet(ctx context.Context, thing []int32) (r []int32, err error)

func (*ThriftTestHandler) TestString

func (p *ThriftTestHandler) TestString(ctx context.Context, thing string) (r string, err error)

func (*ThriftTestHandler) TestStringMap

func (p *ThriftTestHandler) TestStringMap(ctx context.Context, thing map[string]string) (r map[string]string, err error)

func (*ThriftTestHandler) TestStruct

func (p *ThriftTestHandler) TestStruct(ctx context.Context, thing *thrifttest.Xtruct) (r *thrifttest.Xtruct, err error)

func (*ThriftTestHandler) TestTypedef

func (p *ThriftTestHandler) TestTypedef(ctx context.Context, thing thrifttest.UserId) (r thrifttest.UserId, err error)

func (*ThriftTestHandler) TestVoid

func (p *ThriftTestHandler) TestVoid(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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