mock

package
v0.0.0-...-1c8de56 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) Write

func (m *MockClient) Write(arg0 []byte, arg1 *net.WriteArgs) error

Write mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Write

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

Write indicates an expected call of Write

type MockConsoler

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

MockConsoler is a mock of Consoler interface

func NewMockConsoler

func NewMockConsoler(ctrl *gomock.Controller) *MockConsoler

NewMockConsoler creates a new mock instance

func (*MockConsoler) EXPECT

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

func (*MockConsoler) GetLogger

func (m *MockConsoler) GetLogger() *logrus.Logger

GetLogger mocks base method

func (*MockConsoler) Out

func (m *MockConsoler) Out(arg0 logrus.Level, arg1 logrus.Fields, arg2 ...interface{}) error

Out mocks base method

func (*MockConsoler) OutLogAndConsole

func (m *MockConsoler) OutLogAndConsole(arg0 logrus.Level, arg1 logrus.Fields, arg2 ...interface{}) error

OutLogAndConsole mocks base method

func (*MockConsoler) SetFlat

func (m *MockConsoler) SetFlat(arg0 bool)

SetFlat mocks base method

func (*MockConsoler) SetLevel

func (m *MockConsoler) SetLevel(arg0 logrus.Level)

SetLevel mocks base method

type MockConsolerMockRecorder

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

MockConsolerMockRecorder is the mock recorder for MockConsoler

func (*MockConsolerMockRecorder) GetLogger

func (mr *MockConsolerMockRecorder) GetLogger() *gomock.Call

GetLogger indicates an expected call of GetLogger

func (*MockConsolerMockRecorder) Out

func (mr *MockConsolerMockRecorder) Out(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Out indicates an expected call of Out

func (*MockConsolerMockRecorder) OutLogAndConsole

func (mr *MockConsolerMockRecorder) OutLogAndConsole(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

OutLogAndConsole indicates an expected call of OutLogAndConsole

func (*MockConsolerMockRecorder) SetFlat

func (mr *MockConsolerMockRecorder) SetFlat(arg0 interface{}) *gomock.Call

SetFlat indicates an expected call of SetFlat

func (*MockConsolerMockRecorder) SetLevel

func (mr *MockConsolerMockRecorder) SetLevel(arg0 interface{}) *gomock.Call

SetLevel indicates an expected call of SetLevel

type MockDispatcher

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

MockDispatcher is a mock of Dispatcher interface

func NewMockDispatcher

func NewMockDispatcher(ctrl *gomock.Controller) *MockDispatcher

NewMockDispatcher creates a new mock instance

func (*MockDispatcher) EXPECT

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

func (*MockDispatcher) GetHisto

func (m *MockDispatcher) GetHisto() (go_metrics.Histogram, error)

GetHisto mocks base method

func (*MockDispatcher) MultiSend

func (m *MockDispatcher) MultiSend(arg0 context.Context, arg1 <-chan interface{}, arg2 *emul.SendArgs, arg3 *sync.WaitGroup) error

MultiSend mocks base method

func (*MockDispatcher) SendReq

func (m *MockDispatcher) SendReq(arg0 context.Context, arg1 string, arg2 *emul.SendArgs) error

SendReq mocks base method

type MockDispatcherMockRecorder

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

MockDispatcherMockRecorder is the mock recorder for MockDispatcher

func (*MockDispatcherMockRecorder) GetHisto

func (mr *MockDispatcherMockRecorder) GetHisto() *gomock.Call

GetHisto indicates an expected call of GetHisto

func (*MockDispatcherMockRecorder) MultiSend

func (mr *MockDispatcherMockRecorder) MultiSend(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MultiSend indicates an expected call of MultiSend

func (*MockDispatcherMockRecorder) SendReq

func (mr *MockDispatcherMockRecorder) SendReq(arg0, arg1, arg2 interface{}) *gomock.Call

SendReq indicates an expected call of SendReq

type MockFiler

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

MockFiler is a mock of Filer interface

func NewMockFiler

func NewMockFiler(ctrl *gomock.Controller) *MockFiler

NewMockFiler creates a new mock instance

func (*MockFiler) BuildFilePath

func (m *MockFiler) BuildFilePath(arg0, arg1 string) (string, error)

BuildFilePath mocks base method

func (*MockFiler) CleanDir

func (m *MockFiler) CleanDir(arg0 string) error

CleanDir mocks base method

func (*MockFiler) CloseFile

func (m *MockFiler) CloseFile(arg0 *os.File) error

CloseFile mocks base method

func (*MockFiler) CreateFile

func (m *MockFiler) CreateFile(arg0 string) (*os.File, error)

CreateFile mocks base method

func (*MockFiler) DetermineContentType

func (m *MockFiler) DetermineContentType(arg0 string) (sio.ContentType, error)

DetermineContentType mocks base method

func (*MockFiler) EXPECT

func (m *MockFiler) EXPECT() *MockFilerMockRecorder

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

func (*MockFiler) Mkdir

func (m *MockFiler) Mkdir(arg0 string, arg1 os.FileMode) error

Mkdir mocks base method

func (*MockFiler) MkdirAll

func (m *MockFiler) MkdirAll(arg0 string, arg1 os.FileMode) error

MkdirAll mocks base method

func (*MockFiler) ReadArchive

func (m *MockFiler) ReadArchive(arg0 string) ([]byte, error)

ReadArchive mocks base method

func (*MockFiler) ReadFile

func (m *MockFiler) ReadFile(arg0 string) ([]byte, error)

ReadFile mocks base method

func (*MockFiler) RemoveAll

func (m *MockFiler) RemoveAll(arg0 string) error

RemoveAll mocks base method

func (*MockFiler) WriteFile

func (m *MockFiler) WriteFile(arg0 *os.File, arg1 []byte) (int, error)

WriteFile mocks base method

type MockFilerMockRecorder

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

MockFilerMockRecorder is the mock recorder for MockFiler

func (*MockFilerMockRecorder) BuildFilePath

func (mr *MockFilerMockRecorder) BuildFilePath(arg0, arg1 interface{}) *gomock.Call

BuildFilePath indicates an expected call of BuildFilePath

func (*MockFilerMockRecorder) CleanDir

func (mr *MockFilerMockRecorder) CleanDir(arg0 interface{}) *gomock.Call

CleanDir indicates an expected call of CleanDir

func (*MockFilerMockRecorder) CloseFile

func (mr *MockFilerMockRecorder) CloseFile(arg0 interface{}) *gomock.Call

CloseFile indicates an expected call of CloseFile

func (*MockFilerMockRecorder) CreateFile

func (mr *MockFilerMockRecorder) CreateFile(arg0 interface{}) *gomock.Call

CreateFile indicates an expected call of CreateFile

func (*MockFilerMockRecorder) DetermineContentType

func (mr *MockFilerMockRecorder) DetermineContentType(arg0 interface{}) *gomock.Call

DetermineContentType indicates an expected call of DetermineContentType

func (*MockFilerMockRecorder) Mkdir

func (mr *MockFilerMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir

func (*MockFilerMockRecorder) MkdirAll

func (mr *MockFilerMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

func (*MockFilerMockRecorder) ReadArchive

func (mr *MockFilerMockRecorder) ReadArchive(arg0 interface{}) *gomock.Call

ReadArchive indicates an expected call of ReadArchive

func (*MockFilerMockRecorder) ReadFile

func (mr *MockFilerMockRecorder) ReadFile(arg0 interface{}) *gomock.Call

ReadFile indicates an expected call of ReadFile

func (*MockFilerMockRecorder) RemoveAll

func (mr *MockFilerMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

func (*MockFilerMockRecorder) WriteFile

func (mr *MockFilerMockRecorder) WriteFile(arg0, arg1 interface{}) *gomock.Call

WriteFile indicates an expected call of WriteFile

type MockHistogram

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

MockHistogram is a mock of Histogram interface

func NewMockHistogram

func NewMockHistogram(ctrl *gomock.Controller) *MockHistogram

NewMockHistogram creates a new mock instance

func (*MockHistogram) Clear

func (m *MockHistogram) Clear()

Clear mocks base method

func (*MockHistogram) Count

func (m *MockHistogram) Count() int64

Count mocks base method

func (*MockHistogram) EXPECT

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

func (*MockHistogram) Max

func (m *MockHistogram) Max() int64

Max mocks base method

func (*MockHistogram) Mean

func (m *MockHistogram) Mean() float64

Mean mocks base method

func (*MockHistogram) Min

func (m *MockHistogram) Min() int64

Min mocks base method

func (*MockHistogram) Percentile

func (m *MockHistogram) Percentile(arg0 float64) float64

Percentile mocks base method

func (*MockHistogram) Percentiles

func (m *MockHistogram) Percentiles(arg0 []float64) []float64

Percentiles mocks base method

func (*MockHistogram) Sample

func (m *MockHistogram) Sample() go_metrics.Sample

Sample mocks base method

func (*MockHistogram) Snapshot

func (m *MockHistogram) Snapshot() go_metrics.Histogram

Snapshot mocks base method

func (*MockHistogram) StdDev

func (m *MockHistogram) StdDev() float64

StdDev mocks base method

func (*MockHistogram) Sum

func (m *MockHistogram) Sum() int64

Sum mocks base method

func (*MockHistogram) Update

func (m *MockHistogram) Update(arg0 int64)

Update mocks base method

func (*MockHistogram) Variance

func (m *MockHistogram) Variance() float64

Variance mocks base method

type MockHistogramMockRecorder

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

MockHistogramMockRecorder is the mock recorder for MockHistogram

func (*MockHistogramMockRecorder) Clear

func (mr *MockHistogramMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear

func (*MockHistogramMockRecorder) Count

func (mr *MockHistogramMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count

func (*MockHistogramMockRecorder) Max

Max indicates an expected call of Max

func (*MockHistogramMockRecorder) Mean

Mean indicates an expected call of Mean

func (*MockHistogramMockRecorder) Min

Min indicates an expected call of Min

func (*MockHistogramMockRecorder) Percentile

func (mr *MockHistogramMockRecorder) Percentile(arg0 interface{}) *gomock.Call

Percentile indicates an expected call of Percentile

func (*MockHistogramMockRecorder) Percentiles

func (mr *MockHistogramMockRecorder) Percentiles(arg0 interface{}) *gomock.Call

Percentiles indicates an expected call of Percentiles

func (*MockHistogramMockRecorder) Sample

func (mr *MockHistogramMockRecorder) Sample() *gomock.Call

Sample indicates an expected call of Sample

func (*MockHistogramMockRecorder) Snapshot

func (mr *MockHistogramMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot

func (*MockHistogramMockRecorder) StdDev

func (mr *MockHistogramMockRecorder) StdDev() *gomock.Call

StdDev indicates an expected call of StdDev

func (*MockHistogramMockRecorder) Sum

Sum indicates an expected call of Sum

func (*MockHistogramMockRecorder) Update

func (mr *MockHistogramMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update

func (*MockHistogramMockRecorder) Variance

func (mr *MockHistogramMockRecorder) Variance() *gomock.Call

Variance indicates an expected call of Variance

type MockLimiter

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

MockLimiter is a mock of Limiter interface

func NewMockLimiter

func NewMockLimiter(ctrl *gomock.Controller) *MockLimiter

NewMockLimiter creates a new mock instance

func (*MockLimiter) EXPECT

func (m *MockLimiter) EXPECT() *MockLimiterMockRecorder

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

func (*MockLimiter) Limit

func (m *MockLimiter) Limit() rate.Limit

Limit mocks base method

func (*MockLimiter) Wait

func (m *MockLimiter) Wait(arg0 context.Context) error

Wait mocks base method

type MockLimiterMockRecorder

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

MockLimiterMockRecorder is the mock recorder for MockLimiter

func (*MockLimiterMockRecorder) Limit

func (mr *MockLimiterMockRecorder) Limit() *gomock.Call

Limit indicates an expected call of Limit

func (*MockLimiterMockRecorder) Wait

func (mr *MockLimiterMockRecorder) Wait(arg0 interface{}) *gomock.Call

Wait indicates an expected call of Wait

type MockLogger

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

MockLogger is a mock of Logger interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func (*MockLogger) Configure

func (m *MockLogger) Configure(arg0 *conf.Log) error

Configure mocks base method

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) GetLogger

func (m *MockLogger) GetLogger() *logrus.Logger

GetLogger mocks base method

func (*MockLogger) Out

func (m *MockLogger) Out(arg0 logrus.Level, arg1 logrus.Fields, arg2 ...interface{}) error

Out mocks base method

func (*MockLogger) SetLevel

func (m *MockLogger) SetLevel(arg0 logrus.Level)

SetLevel mocks base method

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Configure

func (mr *MockLoggerMockRecorder) Configure(arg0 interface{}) *gomock.Call

Configure indicates an expected call of Configure

func (*MockLoggerMockRecorder) GetLogger

func (mr *MockLoggerMockRecorder) GetLogger() *gomock.Call

GetLogger indicates an expected call of GetLogger

func (*MockLoggerMockRecorder) Out

func (mr *MockLoggerMockRecorder) Out(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Out indicates an expected call of Out

func (*MockLoggerMockRecorder) SetLevel

func (mr *MockLoggerMockRecorder) SetLevel(arg0 interface{}) *gomock.Call

SetLevel indicates an expected call of SetLevel

Jump to

Keyboard shortcuts

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