mocks

package
v0.0.0-...-cd8b1d2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDatabase

type IDatabase struct {
	mock.Mock
}

IDatabase is an autogenerated mock type for the IDatabase type

func (*IDatabase) Close

func (_m *IDatabase) Close() error

Close provides a mock function with given fields:

func (*IDatabase) Ping

func (_m *IDatabase) Ping() error

Ping provides a mock function with given fields:

func (*IDatabase) PrepareContext

func (_m *IDatabase) PrepareContext(ctx context.Context, query string) (database.IStmt, error)

PrepareContext provides a mock function with given fields: ctx, query

type IHandler

type IHandler struct {
	mock.Mock
}

IHandler is an autogenerated mock type for the IHandler type

func (*IHandler) Count

func (_m *IHandler) Count(ctx context.Context, params arguments.CompanyCount) (int64, error)

Count provides a mock function with given fields: ctx, params

func (*IHandler) Delete

func (_m *IHandler) Delete(ctx context.Context, param arguments.CompanyDelete) (int64, error)

Delete provides a mock function with given fields: ctx, param

func (*IHandler) GetByID

func (_m *IHandler) GetByID(ctx context.Context, param arguments.CompanyGetByID) (models.Company, error)

GetByID provides a mock function with given fields: ctx, param

func (*IHandler) GetByIDs

func (_m *IHandler) GetByIDs(ctx context.Context, param arguments.CompanyGetByIDs) ([]models.Company, error)

GetByIDs provides a mock function with given fields: ctx, param

func (*IHandler) Insert

func (_m *IHandler) Insert(ctx context.Context, params arguments.CompanyInsert) (models.Company, error)

Insert provides a mock function with given fields: ctx, params

func (*IHandler) List

func (_m *IHandler) List(ctx context.Context, params arguments.CompanyList) ([]models.Company, error)

List provides a mock function with given fields: ctx, params

func (*IHandler) Update

func (_m *IHandler) Update(ctx context.Context, params arguments.CompanyUpdate) (models.Company, error)

Update provides a mock function with given fields: ctx, params

type IRepository

type IRepository struct {
	mock.Mock
}

IRepository is an autogenerated mock type for the IRepository type

func (*IRepository) Count

func (_m *IRepository) Count(ctx context.Context, params arguments.CompanyCount) (int64, error)

Count provides a mock function with given fields: ctx, params

func (*IRepository) Delete

func (_m *IRepository) Delete(ctx context.Context, param arguments.CompanyDelete) (int64, error)

Delete provides a mock function with given fields: ctx, param

func (*IRepository) GetByID

GetByID provides a mock function with given fields: ctx, param

func (*IRepository) GetByIDs

func (_m *IRepository) GetByIDs(ctx context.Context, param arguments.CompanyGetByIDs) ([]models.Company, error)

GetByIDs provides a mock function with given fields: ctx, param

func (*IRepository) Insert

Insert provides a mock function with given fields: ctx, params

func (*IRepository) List

func (_m *IRepository) List(ctx context.Context, params arguments.CompanyList) ([]models.Company, error)

List provides a mock function with given fields: ctx, params

func (*IRepository) Update

Update provides a mock function with given fields: ctx, params

Jump to

Keyboard shortcuts

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