mocks

package
v0.0.0-...-70f22cf Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRepository

type TaskRepository struct {
	mock.Mock
}

TaskRepository is an autogenerated mock type for the TaskRepository type

func (TaskRepository) Answer

func (_m TaskRepository) Answer(task domain.Task) error

Answer provides a mock function with given fields: task

func (TaskRepository) Create

func (_m TaskRepository) Create(vocabulary domain.Vocabulary, peerId int64) (*domain.Task, error)

Create provides a mock function with given fields: vocabulary, peerId

func (TaskRepository) DeleteLast

func (_m TaskRepository) DeleteLast(peerId int64) error

DeleteLast provides a mock function with given fields: peerId

func (TaskRepository) GetById

func (_m TaskRepository) GetById(taskId int64) (domain.Task, error)

GetById provides a mock function with given fields: taskId

func (TaskRepository) GetLast

func (_m TaskRepository) GetLast(peerId int64) (domain.Task, error)

GetLast provides a mock function with given fields: peerId

func (TaskRepository) GetTodayTasks

func (_m TaskRepository) GetTodayTasks(topicId int64, peerId int) (int, error)

GetTodayTasks provides a mock function with given fields: topicId, peerId

type VocabularyRepository

type VocabularyRepository struct {
	mock.Mock
}

VocabularyRepository is an autogenerated mock type for the VocabularyRepository type

func (VocabularyRepository) FindActual

func (_m VocabularyRepository) FindActual(topicId int64, peerId int64, date time.Time) (domain.Vocabulary, error)

FindActual provides a mock function with given fields: topicId, peerId, date

func (VocabularyRepository) GetTotal

func (_m VocabularyRepository) GetTotal(topicId int64) (int, error)

GetTotal provides a mock function with given fields: topicId

func (VocabularyRepository) IncrViews

func (_m VocabularyRepository) IncrViews(_a0 domain.Vocabulary)

IncrViews provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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