mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryController

type InMemoryController struct {
	mock.Mock
}

InMemoryController is an autogenerated mock type for the InMemoryController type

func (*InMemoryController) Create

func (_m *InMemoryController) Create(request *server.Request, response *server.Response)

Create provides a mock function with given fields: request, response

func (*InMemoryController) GetRecords

func (_m *InMemoryController) GetRecords(request *server.Request, response *server.Response)

GetRecords provides a mock function with given fields: request, response

type InMemoryDatabase

type InMemoryDatabase struct {
	mock.Mock
}

InMemoryDatabase is an autogenerated mock type for the InMemoryDatabase type

func (*InMemoryDatabase) CreateSync

func (_m *InMemoryDatabase) CreateSync(key string, value string)

CreateSync provides a mock function with given fields: key, value

func (*InMemoryDatabase) GetSync

func (_m *InMemoryDatabase) GetSync(key string) string

GetSync provides a mock function with given fields: key

type InMemoryRecordsRepository

type InMemoryRecordsRepository struct {
	mock.Mock
}

InMemoryRecordsRepository is an autogenerated mock type for the InMemoryRecordsRepository type

func (*InMemoryRecordsRepository) Create

func (_m *InMemoryRecordsRepository) Create(key string, value string) error

Create provides a mock function with given fields: key, value

func (*InMemoryRecordsRepository) Get

func (_m *InMemoryRecordsRepository) Get(key string) (string, error)

Get provides a mock function with given fields: key

type InMemoryRecordsService

type InMemoryRecordsService struct {
	mock.Mock
}

InMemoryRecordsService is an autogenerated mock type for the InMemoryRecordsService type

func (*InMemoryRecordsService) Create

func (_m *InMemoryRecordsService) Create(key string, value string) error

Create provides a mock function with given fields: key, value

func (*InMemoryRecordsService) Get

func (_m *InMemoryRecordsService) Get(key string) (string, error)

Get provides a mock function with given fields: key

type MongoController

type MongoController struct {
	mock.Mock
}

MongoController is an autogenerated mock type for the MongoController type

func (*MongoController) GetRecords

func (_m *MongoController) GetRecords(request *server.Request, response *server.Response)

GetRecords provides a mock function with given fields: request, response

type MongoDatabase

type MongoDatabase struct {
	mock.Mock
}

MongoDatabase is an autogenerated mock type for the MongoDatabase type

func (*MongoDatabase) Disconnect

func (_m *MongoDatabase) Disconnect()

Disconnect provides a mock function with given fields:

func (*MongoDatabase) GetCollection

func (_m *MongoDatabase) GetCollection(collection string) *mongo.Collection

GetCollection provides a mock function with given fields: collection

type MongoRecordsRepository

type MongoRecordsRepository struct {
	mock.Mock
}

MongoRecordsRepository is an autogenerated mock type for the MongoRecordsRepository type

func (*MongoRecordsRepository) GetRecordsWith

func (_m *MongoRecordsRepository) GetRecordsWith(minCount int, maxCount int, startDate time.Time, endDate time.Time) ([]models.MongoRecord, error)

GetRecordsWith provides a mock function with given fields: minCount, maxCount, startDate, endDate

type MongoRecordsService

type MongoRecordsService struct {
	mock.Mock
}

MongoRecordsService is an autogenerated mock type for the MongoRecordsService type

func (*MongoRecordsService) GetRecords

func (_m *MongoRecordsService) GetRecords(minCount int, maxCount int, startDate time.Time, endDate time.Time) ([]response.MongoRecordResponse, error)

GetRecords provides a mock function with given fields: minCount, maxCount, startDate, endDate

type TestContainer

type TestContainer struct {
	mock.Mock
}

TestContainer is an autogenerated mock type for the TestContainer type

func (*TestContainer) GetHostPort

func (_m *TestContainer) GetHostPort(port string) string

GetHostPort provides a mock function with given fields: port

func (*TestContainer) Terminate

func (_m *TestContainer) Terminate()

Terminate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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