Documentation
¶
Overview ¶
Package mocks contains mocked neuron factory and repository. It is used on testing purpose.
Index ¶
- type Factory
- type Repository
- func (_m *Repository) Begin(ctx context.Context, s *query.Scope) error
- func (_m *Repository) Close(ctx context.Context) error
- func (_m *Repository) Commit(ctx context.Context, s *query.Scope) error
- func (_m *Repository) Create(ctx context.Context, s *query.Scope) error
- func (_m *Repository) Delete(ctx context.Context, s *query.Scope) error
- func (_m *Repository) FactoryName() string
- func (_m *Repository) Get(ctx context.Context, s *query.Scope) error
- func (_m *Repository) List(ctx context.Context, s *query.Scope) error
- func (_m *Repository) Patch(ctx context.Context, s *query.Scope) error
- func (_m *Repository) Rollback(ctx context.Context, s *query.Scope) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory is the repository.Factory mock implementation
func (*Factory) DriverName ¶ added in v0.2.1
DriverName returns the factory repository name Implements repository.Repository
func (*Factory) New ¶
func (f *Factory) New(s repository.Controller, model *mapping.ModelStruct) (repository.Repository, error)
New creates new repository Implements repository.Factory method
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Close ¶ added in v0.2.1
func (_m *Repository) Close(ctx context.Context) error
Close closes the repository connection
func (*Repository) FactoryName ¶ added in v0.4.0
func (_m *Repository) FactoryName() string
FactoryName provides a mock function with given fields:
Click to show internal directories.
Click to hide internal directories.