mocks

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericNoteHistoryRepository

type GenericNoteHistoryRepository struct {
	mock.Mock
}

GenericNoteHistoryRepository is an autogenerated mock type for the GenericNoteHistoryRepository type

func NewGenericNoteHistoryRepository

func NewGenericNoteHistoryRepository(t mockConstructorTestingTNewGenericNoteHistoryRepository) *GenericNoteHistoryRepository

NewGenericNoteHistoryRepository creates a new instance of GenericNoteHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GenericNoteHistoryRepository) CommitTx

func (_m *GenericNoteHistoryRepository) CommitTx(tx *pg.Tx) error

CommitTx provides a mock function with given fields: tx

func (*GenericNoteHistoryRepository) FindHistoryByNoteId

func (_m *GenericNoteHistoryRepository) FindHistoryByNoteId(id []int) ([]repository.GenericNoteHistory, error)

FindHistoryByNoteId provides a mock function with given fields: id

func (*GenericNoteHistoryRepository) RollbackTx

func (_m *GenericNoteHistoryRepository) RollbackTx(tx *pg.Tx) error

RollbackTx provides a mock function with given fields: tx

func (*GenericNoteHistoryRepository) SaveHistory

SaveHistory provides a mock function with given fields: tx, model

func (*GenericNoteHistoryRepository) StartTx

func (_m *GenericNoteHistoryRepository) StartTx() (*pg.Tx, error)

StartTx provides a mock function with given fields:

type GenericNoteRepository

type GenericNoteRepository struct {
	mock.Mock
}

GenericNoteRepository is an autogenerated mock type for the GenericNoteRepository type

func NewGenericNoteRepository

func NewGenericNoteRepository(t mockConstructorTestingTNewGenericNoteRepository) *GenericNoteRepository

NewGenericNoteRepository creates a new instance of GenericNoteRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GenericNoteRepository) CommitTx

func (_m *GenericNoteRepository) CommitTx(tx *pg.Tx) error

CommitTx provides a mock function with given fields: tx

func (*GenericNoteRepository) FindByAppId

func (_m *GenericNoteRepository) FindByAppId(id int) (*repository.GenericNote, error)

FindByAppId provides a mock function with given fields: id

func (*GenericNoteRepository) FindByClusterId

func (_m *GenericNoteRepository) FindByClusterId(id int) (*repository.GenericNote, error)

FindByClusterId provides a mock function with given fields: id

func (*GenericNoteRepository) FindByIdentifier

func (_m *GenericNoteRepository) FindByIdentifier(identifier int, identifierType repository.NoteType) (*repository.GenericNote, error)

FindByIdentifier provides a mock function with given fields: identifier, identifierType

func (*GenericNoteRepository) GetDescriptionFromAppIds

func (_m *GenericNoteRepository) GetDescriptionFromAppIds(appIds []int) ([]*repository.GenericNote, error)

GetDescriptionFromAppIds provides a mock function with given fields: appIds

func (*GenericNoteRepository) GetGenericNotesForAppIds

func (_m *GenericNoteRepository) GetGenericNotesForAppIds(appIds []int) ([]*repository.GenericNote, error)

GetGenericNotesForAppIds provides a mock function with given fields: appIds

func (*GenericNoteRepository) RollbackTx

func (_m *GenericNoteRepository) RollbackTx(tx *pg.Tx) error

RollbackTx provides a mock function with given fields: tx

func (*GenericNoteRepository) Save

func (_m *GenericNoteRepository) Save(tx *pg.Tx, model *repository.GenericNote) error

Save provides a mock function with given fields: tx, model

func (*GenericNoteRepository) StartTx

func (_m *GenericNoteRepository) StartTx() (*pg.Tx, error)

StartTx provides a mock function with given fields:

func (*GenericNoteRepository) Update

func (_m *GenericNoteRepository) Update(tx *pg.Tx, model *repository.GenericNote) error

Update provides a mock function with given fields: tx, model

Jump to

Keyboard shortcuts

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