clientmock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package clientmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFixture

type ClientFixture struct {
	EchoMessage *EchoMessageScenarios
	EchoString  *EchoStringScenarios
}

ClientFixture defines the client fixture type

type EchoMessageFixture

type EchoMessageFixture struct {
	Arg0 *base.Message

	// Arg{n}Any indicates the nth argument could be gomock.Any
	Arg0Any bool

	Ret0 *base.Message
}

EchoMessageFixture defines the fixture type for EchoMessage

type EchoMessageMock

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

EchoMessageMock mocks the EchoMessage method

func (*EchoMessageMock) Success

func (s *EchoMessageMock) Success()

Success sets the expected scenario as defined in the concrete fixture package github.com/uber/zanzibar/examples/example-gateway/clients/quux/fixture

type EchoMessageScenarios

type EchoMessageScenarios struct {
	Success *EchoMessageFixture `scenario:"success"`
}

EchoMessageScenarios defines all fixture scenarios for EchoMessage

type EchoStringFixture

type EchoStringFixture struct {
	Arg0 string

	// Arg{n}Any indicates the nth argument could be gomock.Any
	Arg0Any bool

	Ret0 string
}

EchoStringFixture defines the fixture type for EchoString

type EchoStringMock

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

EchoStringMock mocks the EchoString method

func (*EchoStringMock) Success

func (s *EchoStringMock) Success()

Success sets the expected scenario as defined in the concrete fixture package github.com/uber/zanzibar/examples/example-gateway/clients/quux/fixture

type EchoStringScenarios

type EchoStringScenarios struct {
	Success *EchoStringFixture `scenario:"success"`
}

EchoStringScenarios defines all fixture scenarios for EchoString

type MockClient

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

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) DropMessages

func (m *MockClient) DropMessages(arg0, arg1 *base.Message)

DropMessages mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) EchoMessage

func (m *MockClient) EchoMessage(arg0 *base.Message) *base.Message

EchoMessage mocks base method

func (*MockClient) EchoString

func (m *MockClient) EchoString(arg0 string) string

EchoString mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) DropMessages

func (mr *MockClientMockRecorder) DropMessages(arg0, arg1 interface{}) *gomock.Call

DropMessages indicates an expected call of DropMessages

func (*MockClientMockRecorder) EchoMessage

func (mr *MockClientMockRecorder) EchoMessage(arg0 interface{}) *gomock.Call

EchoMessage indicates an expected call of EchoMessage

func (*MockClientMockRecorder) EchoString

func (mr *MockClientMockRecorder) EchoString(arg0 interface{}) *gomock.Call

EchoString indicates an expected call of EchoString

type MockClientWithFixture

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

MockClientWithFixture is a mock of Client interface with preset fixture

func New

New creates a new mock instance

func (*MockClientWithFixture) EXPECT

func (m *MockClientWithFixture) EXPECT()

EXPECT shadows the EXPECT method on the underlying mock client. It should not be called directly.

func (*MockClientWithFixture) ExpectEchoMessage

func (m *MockClientWithFixture) ExpectEchoMessage() *EchoMessageMock

ExpectEchoMessage returns an object that allows the caller to choose expected scenario for EchoMessage

func (*MockClientWithFixture) ExpectEchoString

func (m *MockClientWithFixture) ExpectEchoString() *EchoStringMock

ExpectEchoString returns an object that allows the caller to choose expected scenario for EchoString

Jump to

Keyboard shortcuts

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