tests - ActiveState ActiveGo 1.8
...

Package tests

import "github.com/apache/thrift/lib/go/test/tests"
Overview
Index

Overview ▾

Index ▾

type MockTProtocol
    func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol
    func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder
    func (_m *MockTProtocol) Flush() error
    func (_m *MockTProtocol) ReadBinary() ([]byte, error)
    func (_m *MockTProtocol) ReadBool() (bool, error)
    func (_m *MockTProtocol) ReadByte() (int8, error)
    func (_m *MockTProtocol) ReadDouble() (float64, error)
    func (_m *MockTProtocol) ReadFieldBegin() (string, thrift.TType, int16, error)
    func (_m *MockTProtocol) ReadFieldEnd() error
    func (_m *MockTProtocol) ReadI16() (int16, error)
    func (_m *MockTProtocol) ReadI32() (int32, error)
    func (_m *MockTProtocol) ReadI64() (int64, error)
    func (_m *MockTProtocol) ReadListBegin() (thrift.TType, int, error)
    func (_m *MockTProtocol) ReadListEnd() error
    func (_m *MockTProtocol) ReadMapBegin() (thrift.TType, thrift.TType, int, error)
    func (_m *MockTProtocol) ReadMapEnd() error
    func (_m *MockTProtocol) ReadMessageBegin() (string, thrift.TMessageType, int32, error)
    func (_m *MockTProtocol) ReadMessageEnd() error
    func (_m *MockTProtocol) ReadSetBegin() (thrift.TType, int, error)
    func (_m *MockTProtocol) ReadSetEnd() error
    func (_m *MockTProtocol) ReadString() (string, error)
    func (_m *MockTProtocol) ReadStructBegin() (string, error)
    func (_m *MockTProtocol) ReadStructEnd() error
    func (_m *MockTProtocol) Skip(_param0 thrift.TType) error
    func (_m *MockTProtocol) Transport() thrift.TTransport
    func (_m *MockTProtocol) WriteBinary(_param0 []byte) error
    func (_m *MockTProtocol) WriteBool(_param0 bool) error
    func (_m *MockTProtocol) WriteByte(_param0 int8) error
    func (_m *MockTProtocol) WriteDouble(_param0 float64) error
    func (_m *MockTProtocol) WriteFieldBegin(_param0 string, _param1 thrift.TType, _param2 int16) error
    func (_m *MockTProtocol) WriteFieldEnd() error
    func (_m *MockTProtocol) WriteFieldStop() error
    func (_m *MockTProtocol) WriteI16(_param0 int16) error
    func (_m *MockTProtocol) WriteI32(_param0 int32) error
    func (_m *MockTProtocol) WriteI64(_param0 int64) error
    func (_m *MockTProtocol) WriteListBegin(_param0 thrift.TType, _param1 int) error
    func (_m *MockTProtocol) WriteListEnd() error
    func (_m *MockTProtocol) WriteMapBegin(_param0 thrift.TType, _param1 thrift.TType, _param2 int) error
    func (_m *MockTProtocol) WriteMapEnd() error
    func (_m *MockTProtocol) WriteMessageBegin(_param0 string, _param1 thrift.TMessageType, _param2 int32) error
    func (_m *MockTProtocol) WriteMessageEnd() error
    func (_m *MockTProtocol) WriteSetBegin(_param0 thrift.TType, _param1 int) error
    func (_m *MockTProtocol) WriteSetEnd() error
    func (_m *MockTProtocol) WriteString(_param0 string) error
    func (_m *MockTProtocol) WriteStructBegin(_param0 string) error
    func (_m *MockTProtocol) WriteStructEnd() error
type SecondServiceHandler
    func NewSecondServiceHandler() *SecondServiceHandler
    func (p *SecondServiceHandler) BlahBlah() (err error)
    func (p *SecondServiceHandler) SecondtestString(thing string) (r string, err error)
type ThriftTestDriver
    func NewThriftTestDriver(t *testing.T, client thrifttest.ThriftTest) *ThriftTestDriver
    func (p *ThriftTestDriver) Start()
type ThriftTestHandler
    func NewThriftTestHandler() *ThriftTestHandler
    func (p *ThriftTestHandler) TestBinary(thing []byte) (r []byte, err error)
    func (p *ThriftTestHandler) TestBool(thing bool) (r bool, err error)
    func (p *ThriftTestHandler) TestByte(thing int8) (r int8, err error)
    func (p *ThriftTestHandler) TestDouble(thing float64) (r float64, err error)
    func (p *ThriftTestHandler) TestEnum(thing thrifttest.Numberz) (r thrifttest.Numberz, err error)
    func (p *ThriftTestHandler) TestException(arg string) (err error)
    func (p *ThriftTestHandler) TestI32(thing int32) (r int32, err error)
    func (p *ThriftTestHandler) TestI64(thing int64) (r int64, err error)
    func (p *ThriftTestHandler) TestInsanity(argument *thrifttest.Insanity) (r map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, err error)
    func (p *ThriftTestHandler) TestList(thing []int32) (r []int32, err error)
    func (p *ThriftTestHandler) TestMap(thing map[int32]int32) (r map[int32]int32, err error)
    func (p *ThriftTestHandler) TestMapMap(hello int32) (r map[int32]map[int32]int32, err error)
    func (p *ThriftTestHandler) TestMulti(arg0 int8, arg1 int32, arg2 int64, arg3 map[int16]string, arg4 thrifttest.Numberz, arg5 thrifttest.UserId) (r *thrifttest.Xtruct, err error)
    func (p *ThriftTestHandler) TestMultiException(arg0 string, arg1 string) (r *thrifttest.Xtruct, err error)
    func (p *ThriftTestHandler) TestNest(thing *thrifttest.Xtruct2) (r *thrifttest.Xtruct2, err error)
    func (p *ThriftTestHandler) TestOneway(secondsToSleep int32) (err error)
    func (p *ThriftTestHandler) TestSet(thing map[int32]struct{}) (r map[int32]struct{}, err error)
    func (p *ThriftTestHandler) TestString(thing string) (r string, err error)
    func (p *ThriftTestHandler) TestStringMap(thing map[string]string) (r map[string]string, err error)
    func (p *ThriftTestHandler) TestStruct(thing *thrifttest.Xtruct) (r *thrifttest.Xtruct, err error)
    func (p *ThriftTestHandler) TestTypedef(thing thrifttest.UserId) (r thrifttest.UserId, err error)
    func (p *ThriftTestHandler) TestVoid() (err error)

Package files

protocol_mock.go thrifttest_driver.go thrifttest_handler.go

type MockTProtocol

Mock of TProtocol interface

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

func NewMockTProtocol

func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol

func (*MockTProtocol) EXPECT

func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder

func (*MockTProtocol) Flush

func (_m *MockTProtocol) Flush() 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() (err error)

func (*SecondServiceHandler) SecondtestString

func (p *SecondServiceHandler) SecondtestString(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(thing []byte) (r []byte, err error)

func (*ThriftTestHandler) TestBool

func (p *ThriftTestHandler) TestBool(thing bool) (r bool, err error)

func (*ThriftTestHandler) TestByte

func (p *ThriftTestHandler) TestByte(thing int8) (r int8, err error)

func (*ThriftTestHandler) TestDouble

func (p *ThriftTestHandler) TestDouble(thing float64) (r float64, err error)

func (*ThriftTestHandler) TestEnum

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

func (*ThriftTestHandler) TestException

func (p *ThriftTestHandler) TestException(arg string) (err error)

func (*ThriftTestHandler) TestI32

func (p *ThriftTestHandler) TestI32(thing int32) (r int32, err error)

func (*ThriftTestHandler) TestI64

func (p *ThriftTestHandler) TestI64(thing int64) (r int64, err error)

func (*ThriftTestHandler) TestInsanity

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

func (*ThriftTestHandler) TestList

func (p *ThriftTestHandler) TestList(thing []int32) (r []int32, err error)

func (*ThriftTestHandler) TestMap

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

func (*ThriftTestHandler) TestMapMap

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

func (*ThriftTestHandler) TestMulti

func (p *ThriftTestHandler) TestMulti(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(arg0 string, arg1 string) (r *thrifttest.Xtruct, err error)

func (*ThriftTestHandler) TestNest

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

func (*ThriftTestHandler) TestOneway

func (p *ThriftTestHandler) TestOneway(secondsToSleep int32) (err error)

func (*ThriftTestHandler) TestSet

func (p *ThriftTestHandler) TestSet(thing map[int32]struct{}) (r map[int32]struct{}, err error)

func (*ThriftTestHandler) TestString

func (p *ThriftTestHandler) TestString(thing string) (r string, err error)

func (*ThriftTestHandler) TestStringMap

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

func (*ThriftTestHandler) TestStruct

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

func (*ThriftTestHandler) TestTypedef

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

func (*ThriftTestHandler) TestVoid

func (p *ThriftTestHandler) TestVoid() (err error)