mock

package
v0.0.0-...-691d4ba Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2015 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChunker

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

Mock of Chunker interface

func NewMockChunker

func NewMockChunker(ctrl *gomock.Controller) *MockChunker

func (*MockChunker) Close

func (_m *MockChunker) Close() error

func (*MockChunker) EXPECT

func (_m *MockChunker) EXPECT() *_MockChunkerRecorder

func (*MockChunker) Flush

func (_m *MockChunker) Flush() error

func (*MockChunker) Write

func (_m *MockChunker) Write(_param0 byte) error

func (*MockChunker) WriteSignature

func (_m *MockChunker) WriteSignature(_param0 uint32, _param1 []byte) error

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) Call

func (_m *MockClient) Call(_param0 string, _param1 interface{}, _param2 interface{}) error

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) Go

func (_m *MockClient) Go(_param0 string, _param1 interface{}, _param2 interface{}, _param3 chan *rpc.Call) *rpc.Call

type MockEncoder

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

Mock of Encoder interface

func NewMockEncoder

func NewMockEncoder(ctrl *gomock.Controller) *MockEncoder

func (*MockEncoder) Close

func (_m *MockEncoder) Close() error

func (*MockEncoder) EXPECT

func (_m *MockEncoder) EXPECT() *_MockEncoderRecorder

func (*MockEncoder) Write

func (_m *MockEncoder) Write(_param0 []byte) (int, error)

func (*MockEncoder) WriteSignature

func (_m *MockEncoder) WriteSignature(_param0 uint32, _param1 []byte) error

type MockReceiver

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

Mock of Receiver interface

func NewMockReceiver

func NewMockReceiver(ctrl *gomock.Controller) *MockReceiver

func (*MockReceiver) Close

func (_m *MockReceiver) Close() error

func (*MockReceiver) EXPECT

func (_m *MockReceiver) EXPECT() *_MockReceiverRecorder

func (*MockReceiver) SaveChunk

func (_m *MockReceiver) SaveChunk(_param0 uint32, _param1 []byte, _param2 []byte) error

func (*MockReceiver) Signatures

func (_m *MockReceiver) Signatures() (signatures.Signatures, error)

func (*MockReceiver) Write

func (_m *MockReceiver) Write(_param0 []byte) (int, error)

Jump to

Keyboard shortcuts

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