mock

package
v0.0.0-...-6ebe9bd Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 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 Item

type Item struct {
	mock.Mock
}

func (*Item) Create

func (m *Item) Create(item *domain.Item) error

func (*Item) FindAll

func (m *Item) FindAll() ([]*domain.Item, error)

type Store

type Store struct {
	mock.Mock
	ItemMock *Item
	UserMock *User
}

func New

func New() *Store

func (*Store) BeginTransaction

func (s *Store) BeginTransaction() (repository.Store, error)

func (*Store) Commit

func (s *Store) Commit() error

func (*Store) Item

func (s *Store) Item() repository.Item

func (*Store) Rollback

func (s *Store) Rollback() error

func (*Store) User

func (s *Store) User() repository.User

type User

type User struct {
	mock.Mock
}

func (*User) Create

func (m *User) Create(user *domain.User) error

func (*User) FindAll

func (m *User) FindAll() ([]*domain.User, error)

func (*User) FindByEmail

func (m *User) FindByEmail(email string) (*domain.User, error)

func (*User) FindByID

func (m *User) FindByID(id domain.UUID) (*domain.User, error)

Jump to

Keyboard shortcuts

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