mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 03:46:29 +02:00
77 lines
2.2 KiB
Go
77 lines
2.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/pomerium/pomerium/internal/grpc/cache (interfaces: Cacher)
|
|
|
|
// Package mock_cache is a generated GoMock package.
|
|
package mock_cache
|
|
|
|
import (
|
|
context "context"
|
|
gomock "github.com/golang/mock/gomock"
|
|
reflect "reflect"
|
|
)
|
|
|
|
// MockCacher is a mock of Cacher interface
|
|
type MockCacher struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockCacherMockRecorder
|
|
}
|
|
|
|
// MockCacherMockRecorder is the mock recorder for MockCacher
|
|
type MockCacherMockRecorder struct {
|
|
mock *MockCacher
|
|
}
|
|
|
|
// NewMockCacher creates a new mock instance
|
|
func NewMockCacher(ctrl *gomock.Controller) *MockCacher {
|
|
mock := &MockCacher{ctrl: ctrl}
|
|
mock.recorder = &MockCacherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockCacher) EXPECT() *MockCacherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Close mocks base method
|
|
func (m *MockCacher) Close() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Close")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Close indicates an expected call of Close
|
|
func (mr *MockCacherMockRecorder) Close() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCacher)(nil).Close))
|
|
}
|
|
|
|
// Get mocks base method
|
|
func (m *MockCacher) Get(arg0 context.Context, arg1 string) ([]byte, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Get", arg0, arg1)
|
|
ret0, _ := ret[0].([]byte)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Get indicates an expected call of Get
|
|
func (mr *MockCacherMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCacher)(nil).Get), arg0, arg1)
|
|
}
|
|
|
|
// Set mocks base method
|
|
func (m *MockCacher) Set(arg0 context.Context, arg1 string, arg2 []byte) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Set", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Set indicates an expected call of Set
|
|
func (mr *MockCacherMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockCacher)(nil).Set), arg0, arg1, arg2)
|
|
}
|