mocks

package
v0.0.0-...-bc7015d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockItemsI

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

MockItemsI is a mock of ItemsI interface.

func NewMockItemsI

func NewMockItemsI(ctrl *gomock.Controller) *MockItemsI

NewMockItemsI creates a new mock instance.

func (*MockItemsI) Create

func (m *MockItemsI) Create(i *models.Items) (*models.Items, error)

Create mocks base method.

func (*MockItemsI) EXPECT

func (m *MockItemsI) EXPECT() *MockItemsIMockRecorder

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

func (*MockItemsI) GetAll

func (m *MockItemsI) GetAll() ([]models.Items, error)

GetAll mocks base method.

func (*MockItemsI) GetById

func (m *MockItemsI) GetById(id int) (*models.Items, error)

GetById mocks base method.

type MockItemsIMockRecorder

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

MockItemsIMockRecorder is the mock recorder for MockItemsI.

func (*MockItemsIMockRecorder) Create

func (mr *MockItemsIMockRecorder) Create(i interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockItemsIMockRecorder) GetAll

func (mr *MockItemsIMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockItemsIMockRecorder) GetById

func (mr *MockItemsIMockRecorder) GetById(id interface{}) *gomock.Call

GetById indicates an expected call of GetById.

type MockServerCache

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

MockServerCache is a mock of ServerCache interface.

func NewMockServerCache

func NewMockServerCache(ctrl *gomock.Controller) *MockServerCache

NewMockServerCache creates a new mock instance.

func (*MockServerCache) Count

func (m *MockServerCache) Count() int

Count mocks base method.

func (*MockServerCache) EXPECT

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

func (*MockServerCache) Get

func (m *MockServerCache) Get(key string) (interface{}, bool)

Get mocks base method.

func (*MockServerCache) Set

func (m *MockServerCache) Set(key string, data interface{}) error

Set mocks base method.

func (*MockServerCache) SetCacheSizeLimit

func (m *MockServerCache) SetCacheSizeLimit(limit int)

SetCacheSizeLimit mocks base method.

func (*MockServerCache) SetTTL

func (m *MockServerCache) SetTTL(ttl time.Duration)

SetTTL mocks base method.

type MockServerCacheMockRecorder

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

MockServerCacheMockRecorder is the mock recorder for MockServerCache.

func (*MockServerCacheMockRecorder) Count

Count indicates an expected call of Count.

func (*MockServerCacheMockRecorder) Get

func (mr *MockServerCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServerCacheMockRecorder) Set

func (mr *MockServerCacheMockRecorder) Set(key, data interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockServerCacheMockRecorder) SetCacheSizeLimit

func (mr *MockServerCacheMockRecorder) SetCacheSizeLimit(limit interface{}) *gomock.Call

SetCacheSizeLimit indicates an expected call of SetCacheSizeLimit.

func (*MockServerCacheMockRecorder) SetTTL

func (mr *MockServerCacheMockRecorder) SetTTL(ttl interface{}) *gomock.Call

SetTTL indicates an expected call of SetTTL.

Jump to

Keyboard shortcuts

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