mockgen

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Overview

Package mockgen is a generated GoMock package.

Package mockgen is a generated GoMock package.

Package mockgen is a generated GoMock package.

Package mockgen is a generated GoMock package.

Package mockgen is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCollection

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

MockCollection is a mock of Collection interface.

func NewMockCollection

func NewMockCollection(ctrl *gomock.Controller) *MockCollection

NewMockCollection creates a new mock instance.

func (*MockCollection) EXPECT

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

func (*MockCollection) Find

func (m *MockCollection) Find(ctx context.Context, filter interface{}) (db.Cursor, error)

Find mocks base method.

func (*MockCollection) FindOne

func (m *MockCollection) FindOne(ctx context.Context, filter, v interface{}) error

FindOne mocks base method.

func (*MockCollection) InsertOne

func (m *MockCollection) InsertOne(ctx context.Context, document interface{}) (interface{}, error)

InsertOne mocks base method.

func (*MockCollection) UpdateOne

func (m *MockCollection) UpdateOne(ctx context.Context, filter, update interface{}) (int64, error)

UpdateOne mocks base method.

type MockCollectionMockRecorder

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

MockCollectionMockRecorder is the mock recorder for MockCollection.

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(ctx, filter interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionMockRecorder) FindOne

func (mr *MockCollectionMockRecorder) FindOne(ctx, filter, v interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockCollectionMockRecorder) InsertOne

func (mr *MockCollectionMockRecorder) InsertOne(ctx, document interface{}) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockCollectionMockRecorder) UpdateOne

func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

type MockCursor

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

MockCursor is a mock of Cursor interface.

func NewMockCursor

func NewMockCursor(ctrl *gomock.Controller) *MockCursor

NewMockCursor creates a new mock instance.

func (*MockCursor) Close

func (m *MockCursor) Close(ctx context.Context) error

Close mocks base method.

func (*MockCursor) Decode

func (m *MockCursor) Decode(val interface{}) error

Decode mocks base method.

func (*MockCursor) EXPECT

func (m *MockCursor) EXPECT() *MockCursorMockRecorder

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

func (*MockCursor) Next

func (m *MockCursor) Next(ctx context.Context) bool

Next mocks base method.

type MockCursorMockRecorder

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

MockCursorMockRecorder is the mock recorder for MockCursor.

func (*MockCursorMockRecorder) Close

func (mr *MockCursorMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockCursorMockRecorder) Decode

func (mr *MockCursorMockRecorder) Decode(val interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockCursorMockRecorder) Next

func (mr *MockCursorMockRecorder) Next(ctx interface{}) *gomock.Call

Next indicates an expected call of Next.

type MockLogRusEntry

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

MockLogRusEntry is a mock of LogRusEntry interface.

func NewMockLogRusEntry

func NewMockLogRusEntry(ctrl *gomock.Controller) *MockLogRusEntry

NewMockLogRusEntry creates a new mock instance.

func (*MockLogRusEntry) Data

func (m *MockLogRusEntry) Data() logrus.Fields

Data mocks base method.

func (*MockLogRusEntry) EXPECT

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

func (*MockLogRusEntry) Error

func (m *MockLogRusEntry) Error(args ...interface{})

Error mocks base method.

func (*MockLogRusEntry) Fatal

func (m *MockLogRusEntry) Fatal(args ...interface{})

Fatal mocks base method.

func (*MockLogRusEntry) Info

func (m *MockLogRusEntry) Info(args ...interface{})

Info mocks base method.

func (*MockLogRusEntry) Warn

func (m *MockLogRusEntry) Warn(args ...interface{})

Warn mocks base method.

func (*MockLogRusEntry) WithField

func (m *MockLogRusEntry) WithField(key string, value interface{}) log.LogRusEntry

WithField mocks base method.

type MockLogRusEntryMockRecorder

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

MockLogRusEntryMockRecorder is the mock recorder for MockLogRusEntry.

func (*MockLogRusEntryMockRecorder) Data

Data indicates an expected call of Data.

func (*MockLogRusEntryMockRecorder) Error

func (mr *MockLogRusEntryMockRecorder) Error(args ...interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockLogRusEntryMockRecorder) Fatal

func (mr *MockLogRusEntryMockRecorder) Fatal(args ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLogRusEntryMockRecorder) Info

func (mr *MockLogRusEntryMockRecorder) Info(args ...interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockLogRusEntryMockRecorder) Warn

func (mr *MockLogRusEntryMockRecorder) Warn(args ...interface{}) *gomock.Call

Warn indicates an expected call of Warn.

func (*MockLogRusEntryMockRecorder) WithField

func (mr *MockLogRusEntryMockRecorder) WithField(key, value interface{}) *gomock.Call

WithField indicates an expected call of WithField.

type MockRabbitChannel

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

MockRabbitChannel is a mock of RabbitChannel interface.

func NewMockRabbitChannel

func NewMockRabbitChannel(ctrl *gomock.Controller) *MockRabbitChannel

NewMockRabbitChannel creates a new mock instance.

func (*MockRabbitChannel) EXPECT

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

func (*MockRabbitChannel) ExchangeDeclare

func (m *MockRabbitChannel) ExchangeDeclare(name, chType string) error

ExchangeDeclare mocks base method.

func (*MockRabbitChannel) Publish

func (m *MockRabbitChannel) Publish(exchange, routingKey string, body []byte) error

Publish mocks base method.

type MockRabbitChannelMockRecorder

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

MockRabbitChannelMockRecorder is the mock recorder for MockRabbitChannel.

func (*MockRabbitChannelMockRecorder) ExchangeDeclare

func (mr *MockRabbitChannelMockRecorder) ExchangeDeclare(name, chType interface{}) *gomock.Call

ExchangeDeclare indicates an expected call of ExchangeDeclare.

func (*MockRabbitChannelMockRecorder) Publish

func (mr *MockRabbitChannelMockRecorder) Publish(exchange, routingKey, body interface{}) *gomock.Call

Publish indicates an expected call of Publish.

type MockRestError

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

MockRestError is a mock of RestError interface.

func NewMockRestError

func NewMockRestError(ctrl *gomock.Controller) *MockRestError

NewMockRestError creates a new mock instance.

func (*MockRestError) EXPECT

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

func (*MockRestError) Error

func (m *MockRestError) Error() string

Error mocks base method.

func (*MockRestError) Status

func (m *MockRestError) Status() int

Status mocks base method.

type MockRestErrorMockRecorder

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

MockRestErrorMockRecorder is the mock recorder for MockRestError.

func (*MockRestErrorMockRecorder) Error

func (mr *MockRestErrorMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

func (*MockRestErrorMockRecorder) Status

func (mr *MockRestErrorMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status.

type MockValidation

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

MockValidation is a mock of Validation interface.

func NewMockValidation

func NewMockValidation(ctrl *gomock.Controller) *MockValidation

NewMockValidation creates a new mock instance.

func (*MockValidation) Add

func (m *MockValidation) Add(path, message string) errs.Validation

Add mocks base method.

func (*MockValidation) EXPECT

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

func (*MockValidation) Error

func (m *MockValidation) Error() string

Error mocks base method.

type MockValidationMockRecorder

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

MockValidationMockRecorder is the mock recorder for MockValidation.

func (*MockValidationMockRecorder) Add

func (mr *MockValidationMockRecorder) Add(path, message interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockValidationMockRecorder) Error

func (mr *MockValidationMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

Jump to

Keyboard shortcuts

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