mocks

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Overview

Package mocks contains mocked neuron factory and repository. It is used on testing purpose.

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) Close added in v0.2.1

func (f *Factory) Close(ctx context.Context, done chan<- interface{})

Close closes the factory

func (*Factory) DriverName added in v0.2.1

func (f *Factory) DriverName() string

DriverName returns the factory repository name Implements repository.Repository

func (*Factory) New

New creates new repository Implements repository.Factory method

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) Close added in v0.2.1

func (_m *Repository) Close(ctx context.Context) error

Close closes the repository connection

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) FactoryName added in v0.4.0

func (_m *Repository) FactoryName() string

FactoryName provides a mock function with given fields:

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) 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