mock_db

package
v0.0.0-...-10ffd4c Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) Create

func (m *MockRepository) Create(key string, value []byte) error

Create mocks base method

func (*MockRepository) Delete

func (m *MockRepository) Delete(key string) error

Delete mocks base method

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRepository) Retrieve

func (m *MockRepository) Retrieve(key string) ([]byte, error)

Retrieve mocks base method

func (*MockRepository) Update

func (m *MockRepository) Update(key string, value []byte) error

Update mocks base method

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(key, value interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockRepositoryMockRecorder) Retrieve

func (mr *MockRepositoryMockRecorder) Retrieve(key interface{}) *gomock.Call

Retrieve indicates an expected call of Retrieve

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(key, value interface{}) *gomock.Call

Update indicates an expected call of Update

Jump to

Keyboard shortcuts

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