Documentation ¶
Overview ¶
Package cachemock is a generated GoMock package.
Index ¶
- type MockCartCache
- func (m *MockCartCache) Delete(ctx context.Context, userId string) error
- func (m *MockCartCache) EXPECT() *MockCartCacheMockRecorder
- func (m *MockCartCache) Get(ctx context.Context, userId string) (cache.Cart, error)
- func (m *MockCartCache) Set(ctx context.Context, userId string, cart cache.Cart) error
- type MockCartCacheMockRecorder
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 ¶
func (m *MockCartCache) EXPECT() *MockCartCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
Click to show internal directories.
Click to hide internal directories.