mock

package
v0.0.0-...-2f3620b Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuditRepository

type MockAuditRepository struct {
	// contains filtered or unexported fields
}

func NewMockAuditRepository

func NewMockAuditRepository() *MockAuditRepository

NewMockAuditRepository initializes and returns a new instance of MockAuditRepository.

func (*MockAuditRepository) CreateAudit

func (m *MockAuditRepository) CreateAudit(audit *mdl.Audit) error

func (*MockAuditRepository) FindAuditByID

func (m *MockAuditRepository) FindAuditByID(id int) (*mdl.Audit, error)

func (*MockAuditRepository) FindAudits

func (m *MockAuditRepository) FindAudits(tableName string, objectId int, duration *mdl.Duration, limit int) (*[]mdl.Audit, error)

type MockFixitRepository

type MockFixitRepository struct {
	// contains filtered or unexported fields
}

func NewMockFixitRepository

func NewMockFixitRepository() *MockFixitRepository

NewMockFixitRepository initializes and returns a new instance of MockFixitRepository.

func (*MockFixitRepository) CreateFixit

func (m *MockFixitRepository) CreateFixit(fixit *mdl.Fixit) error

func (*MockFixitRepository) FindFixitByID

func (m *MockFixitRepository) FindFixitByID(id int) (*mdl.Fixit, error)

func (*MockFixitRepository) FindFixits

func (m *MockFixitRepository) FindFixits(status mdl.StatusType, vocabID int, duration *mdl.Duration, limit int) (*[]mdl.Fixit, error)

func (*MockFixitRepository) UpdateFixit

func (m *MockFixitRepository) UpdateFixit(fixit *mdl.Fixit) error

type MockVocabRepository

type MockVocabRepository struct {
	// contains filtered or unexported fields
}

func NewMockVocabRepository

func NewMockVocabRepository() *MockVocabRepository

NewMockVocabRepository initializes and returns a new instance of MockVocabRepository.

func (*MockVocabRepository) CreateVocab

func (m *MockVocabRepository) CreateVocab(vocab *mdl.Vocab) error

func (*MockVocabRepository) FindVocabByID

func (m *MockVocabRepository) FindVocabByID(id int) (*mdl.Vocab, error)

func (*MockVocabRepository) FindVocabByLearningLang

func (m *MockVocabRepository) FindVocabByLearningLang(learningLang string) (vocab *mdl.Vocab, err error)

func (*MockVocabRepository) FindVocabs

func (m *MockVocabRepository) FindVocabs(learningCode string, hasFirst bool, limit int) (*[]mdl.Vocab, error)

func (*MockVocabRepository) UpdateVocab

func (m *MockVocabRepository) UpdateVocab(vocab *mdl.Vocab) error

Jump to

Keyboard shortcuts

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