mocks

package
v0.0.0-...-b2170da Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrainRepositoryInterface

type BrainRepositoryInterface struct {
	mock.Mock
}

BrainRepositoryInterface is an autogenerated mock type for the BrainRepositoryInterface type

func (*BrainRepositoryInterface) Create

func (_m *BrainRepositoryInterface) Create(name string, description string) (entity.BrainInterface, error)

Create provides a mock function with given fields: name, description

func (*BrainRepositoryInterface) Delete

func (_m *BrainRepositoryInterface) Delete(id int64) error

Delete provides a mock function with given fields: id

func (*BrainRepositoryInterface) GetAll

GetAll provides a mock function with given fields:

func (*BrainRepositoryInterface) GetByReference

func (_m *BrainRepositoryInterface) GetByReference(reference string) (entity.BrainInterface, error)

GetByReference provides a mock function with given fields: reference

type ClassRepositoryInterface

type ClassRepositoryInterface struct {
	mock.Mock
}

ClassRepositoryInterface is an autogenerated mock type for the ClassRepositoryInterface type

func (*ClassRepositoryInterface) Create

func (_m *ClassRepositoryInterface) Create(brainID int64, label string) (entity.ClassInterface, error)

Create provides a mock function with given fields: brainID, label

func (*ClassRepositoryInterface) FindByBrainAndLabel

func (_m *ClassRepositoryInterface) FindByBrainAndLabel(brainID int64, label string) (entity.ClassInterface, error)

FindByBrainAndLabel provides a mock function with given fields: brainID, label

func (*ClassRepositoryInterface) FindByID

func (_m *ClassRepositoryInterface) FindByID(classID int64) (entity.ClassInterface, error)

FindByID provides a mock function with given fields: classID

type TokenRepositoryInterface

type TokenRepositoryInterface struct {
	mock.Mock
}

TokenRepositoryInterface is an autogenerated mock type for the TokenRepositoryInterface type

func (*TokenRepositoryInterface) Create

func (_m *TokenRepositoryInterface) Create(brainID int64, text string) (entity.TokenInterface, error)

Create provides a mock function with given fields: brainID, text

func (*TokenRepositoryInterface) FindByBrainAndText

func (_m *TokenRepositoryInterface) FindByBrainAndText(brainID int64, text string) (entity.TokenInterface, error)

FindByBrainAndText provides a mock function with given fields: brainID, text

func (*TokenRepositoryInterface) GetTokenIDs

func (_m *TokenRepositoryInterface) GetTokenIDs(brainID int64, tokens []string) ([]int64, error)

GetTokenIDs provides a mock function with given fields: brainID, tokens

Jump to

Keyboard shortcuts

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