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: 4 Imported by: 0

Documentation

Overview

Package mocks contains mocked repository and factory.

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 an autogenerated mock type for the Factory type.

func (*Factory) Close added in v0.2.1

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

Close implements repository.Closer interface.

func (*Factory) DriverName added in v0.2.1

func (_m *Factory) DriverName() string

DriverName provides a mock repository name.

func (*Factory) New

New provides a mock function with given fields: model.

type Repository

type Repository struct {
	mock.Mock
}

Repository is the structure that implements repositories.Repository

func (*Repository) Close added in v0.2.1

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

Close closes the repository connection

func (*Repository) FactoryName added in v0.4.0

func (r *Repository) FactoryName() string

FactoryName implements repository.Repository interface

Jump to

Keyboard shortcuts

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