cachemock

package
v0.0.0-...-b784633 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cachemock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCartCache

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

MockCartCache is a mock of CartCache interface.

func NewMockCartCache

func NewMockCartCache(ctrl *gomock.Controller) *MockCartCache

NewMockCartCache creates a new mock instance.

func (*MockCartCache) Delete

func (m *MockCartCache) Delete(ctx context.Context, userId string) error

Delete mocks base method.

func (*MockCartCache) EXPECT

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

func (*MockCartCache) Get

func (m *MockCartCache) Get(ctx context.Context, userId string) (cache.Cart, error)

Get mocks base method.

func (*MockCartCache) Set

func (m *MockCartCache) Set(ctx context.Context, userId string, cart cache.Cart) error

Set mocks base method.

type MockCartCacheMockRecorder

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

MockCartCacheMockRecorder is the mock recorder for MockCartCache.

func (*MockCartCacheMockRecorder) Delete

func (mr *MockCartCacheMockRecorder) Delete(ctx, userId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCartCacheMockRecorder) Get

func (mr *MockCartCacheMockRecorder) Get(ctx, userId interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCartCacheMockRecorder) Set

func (mr *MockCartCacheMockRecorder) Set(ctx, userId, cart interface{}) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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