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.PermissionCount) (int64, error)

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

func (*IHandler) Delete

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

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

func (*IHandler) GetByID

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

func (*IHandler) GetByIDs

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

func (*IHandler) Insert

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

func (*IHandler) List

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

func (*IHandler) Update

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.PermissionCount) (int64, error)

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

func (*IRepository) Delete

func (_m *IRepository) Delete(ctx context.Context, param arguments.PermissionDelete) (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

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

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