mocks

package
v0.0.0-...-dc97487 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 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
}

Item is an autogenerated mock type for the Item type

func (*Item) Create

func (_m *Item) Create(item *model.Item) error

Create provides a mock function with given fields: item

func (*Item) Delete

func (_m *Item) Delete(item *model.Item) error

Delete provides a mock function with given fields: item

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) BeginTransaction

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

BeginTransaction provides a mock function with given fields:

func (*Store) Commit

func (_m *Store) Commit() error

Commit provides a mock function with given fields:

func (*Store) Items

func (_m *Store) Items() repository.Item

Items provides a mock function with given fields:

func (*Store) Rollback

func (_m *Store) Rollback() error

Rollback provides a mock function with given fields:

func (*Store) Users

func (_m *Store) Users() repository.User

Users provides a mock function with given fields:

type UnitOfWork

type UnitOfWork struct {
	mock.Mock
}

UnitOfWork is an autogenerated mock type for the UnitOfWork type

func (*UnitOfWork) BeginTransaction

func (_m *UnitOfWork) BeginTransaction() (repository.Store, error)

BeginTransaction provides a mock function with given fields:

func (*UnitOfWork) Commit

func (_m *UnitOfWork) Commit() error

Commit provides a mock function with given fields:

func (*UnitOfWork) Rollback

func (_m *UnitOfWork) Rollback() error

Rollback provides a mock function with given fields:

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func (*User) Create

func (_m *User) Create(user *model.User) error

Create provides a mock function with given fields: user

func (*User) FindByEmail

func (_m *User) FindByEmail(email string) (*model.User, error)

FindByEmail provides a mock function with given fields: email

func (*User) FindByID

func (_m *User) FindByID(id string) (*model.User, error)

FindByID provides a mock function with given fields: id

Jump to

Keyboard shortcuts

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