mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is the repository.Factory mock implementation

func (*Factory) New

New creates new repository Implements repository.Factory method

func (*Factory) RepositoryName

func (f *Factory) RepositoryName() string

RepositoryName returns the factory repository name Implements repository.Repository

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Begin

func (_m *Repository) Begin(ctx context.Context, s *query.Scope) error

Begin provides a mock function with given fields: ctx, s

func (*Repository) Commit

func (_m *Repository) Commit(ctx context.Context, s *query.Scope) error

Commit provides a mock function with given fields: ctx, s

func (*Repository) Create

func (_m *Repository) Create(ctx context.Context, s *query.Scope) error

Create provides a mock function with given fields: ctx, s

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, s *query.Scope) error

Delete provides a mock function with given fields: ctx, s

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, s *query.Scope) error

Get provides a mock function with given fields: ctx, s

func (*Repository) List

func (_m *Repository) List(ctx context.Context, s *query.Scope) error

List provides a mock function with given fields: ctx, s

func (*Repository) Patch

func (_m *Repository) Patch(ctx context.Context, s *query.Scope) error

Patch provides a mock function with given fields: ctx, s

func (*Repository) RepositoryName

func (_m *Repository) RepositoryName() string

RepositoryName provides a mock function with given fields:

func (*Repository) Rollback

func (_m *Repository) Rollback(ctx context.Context, s *query.Scope) error

Rollback provides a mock function with given fields: ctx, s

Jump to

Keyboard shortcuts

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