mocks

package
v0.0.0-...-6854bef Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimRepo

type SimRepo struct {
	mock.Mock
}

SimRepo is an autogenerated mock type for the SimRepo type

func NewSimRepo

func NewSimRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *SimRepo

NewSimRepo creates a new instance of SimRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SimRepo) Add

func (_m *SimRepo) Add(sims []db.Sim) error

Add provides a mock function with given fields: sims

func (*SimRepo) Delete

func (_m *SimRepo) Delete(id []uint64) error

Delete provides a mock function with given fields: id

func (*SimRepo) Get

func (_m *SimRepo) Get(isPhysicalSim bool, simType db.SimType) (*db.Sim, error)

Get provides a mock function with given fields: isPhysicalSim, simType

func (*SimRepo) GetByIccid

func (_m *SimRepo) GetByIccid(iccid string) (*db.Sim, error)

GetByIccid provides a mock function with given fields: iccid

func (*SimRepo) GetSims

func (_m *SimRepo) GetSims(simType db.SimType) ([]db.Sim, error)

GetSims provides a mock function with given fields: simType

func (*SimRepo) GetSimsByType

func (_m *SimRepo) GetSimsByType(simType db.SimType) ([]db.Sim, error)

GetSimsByType provides a mock function with given fields: simType

func (*SimRepo) UpdateStatus

func (_m *SimRepo) UpdateStatus(iccid string, isAllocated bool, IsFailed bool) error

UpdateStatus provides a mock function with given fields: iccid, isAllocated, IsFailed

Jump to

Keyboard shortcuts

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