diff options
Diffstat (limited to 'internal/mocks/random.go')
| -rw-r--r-- | internal/mocks/random.go | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/internal/mocks/random.go b/internal/mocks/random.go new file mode 100644 index 000000000..9bab56ddd --- /dev/null +++ b/internal/mocks/random.go @@ -0,0 +1,195 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: github.com/authelia/authelia/v4/internal/random (interfaces: Provider) + +// Package mocks is a generated GoMock package. +package mocks + +import ( + big "math/big" + reflect "reflect" + + gomock "github.com/golang/mock/gomock" +) + +// MockRandom is a mock of Provider interface. +type MockRandom struct { + ctrl *gomock.Controller + recorder *MockRandomMockRecorder +} + +// MockRandomMockRecorder is the mock recorder for MockRandom. +type MockRandomMockRecorder struct { + mock *MockRandom +} + +// NewMockRandom creates a new mock instance. +func NewMockRandom(ctrl *gomock.Controller) *MockRandom { + mock := &MockRandom{ctrl: ctrl} + mock.recorder = &MockRandomMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockRandom) EXPECT() *MockRandomMockRecorder { + return m.recorder +} + +// Bytes mocks base method. +func (m *MockRandom) Bytes() []byte { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Bytes") + ret0, _ := ret[0].([]byte) + return ret0 +} + +// Bytes indicates an expected call of Bytes. +func (mr *MockRandomMockRecorder) Bytes() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockRandom)(nil).Bytes)) +} + +// BytesCustom mocks base method. +func (m *MockRandom) BytesCustom(arg0 int, arg1 []byte) []byte { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BytesCustom", arg0, arg1) + ret0, _ := ret[0].([]byte) + return ret0 +} + +// BytesCustom indicates an expected call of BytesCustom. +func (mr *MockRandomMockRecorder) BytesCustom(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCustom", reflect.TypeOf((*MockRandom)(nil).BytesCustom), arg0, arg1) +} + +// BytesCustomErr mocks base method. +func (m *MockRandom) BytesCustomErr(arg0 int, arg1 []byte) ([]byte, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BytesCustomErr", arg0, arg1) + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BytesCustomErr indicates an expected call of BytesCustomErr. +func (mr *MockRandomMockRecorder) BytesCustomErr(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesCustomErr", reflect.TypeOf((*MockRandom)(nil).BytesCustomErr), arg0, arg1) +} + +// BytesErr mocks base method. +func (m *MockRandom) BytesErr() ([]byte, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BytesErr") + ret0, _ := ret[0].([]byte) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BytesErr indicates an expected call of BytesErr. +func (mr *MockRandomMockRecorder) BytesErr() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesErr", reflect.TypeOf((*MockRandom)(nil).BytesErr)) +} + +// Int mocks base method. +func (m *MockRandom) Int(arg0 *big.Int) *big.Int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Int", arg0) + ret0, _ := ret[0].(*big.Int) + return ret0 +} + +// Int indicates an expected call of Int. +func (mr *MockRandomMockRecorder) Int(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Int", reflect.TypeOf((*MockRandom)(nil).Int), arg0) +} + +// IntErr mocks base method. +func (m *MockRandom) IntErr(arg0 *big.Int) (*big.Int, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IntErr", arg0) + ret0, _ := ret[0].(*big.Int) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IntErr indicates an expected call of IntErr. +func (mr *MockRandomMockRecorder) IntErr(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntErr", reflect.TypeOf((*MockRandom)(nil).IntErr), arg0) +} + +// Integer mocks base method. +func (m *MockRandom) Integer(arg0 int) int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Integer", arg0) + ret0, _ := ret[0].(int) + return ret0 +} + +// Integer indicates an expected call of Integer. +func (mr *MockRandomMockRecorder) Integer(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Integer", reflect.TypeOf((*MockRandom)(nil).Integer), arg0) +} + +// IntegerErr mocks base method. +func (m *MockRandom) IntegerErr(arg0 int) (int, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IntegerErr", arg0) + ret0, _ := ret[0].(int) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IntegerErr indicates an expected call of IntegerErr. +func (mr *MockRandomMockRecorder) IntegerErr(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntegerErr", reflect.TypeOf((*MockRandom)(nil).IntegerErr), arg0) +} + +// Read mocks base method. +func (m *MockRandom) Read(arg0 []byte) (int, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Read", arg0) + ret0, _ := ret[0].(int) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Read indicates an expected call of Read. +func (mr *MockRandomMockRecorder) Read(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockRandom)(nil).Read), arg0) +} + +// StringCustom mocks base method. +func (m *MockRandom) StringCustom(arg0 int, arg1 string) string { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StringCustom", arg0, arg1) + ret0, _ := ret[0].(string) + return ret0 +} + +// StringCustom indicates an expected call of StringCustom. +func (mr *MockRandomMockRecorder) StringCustom(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringCustom", reflect.TypeOf((*MockRandom)(nil).StringCustom), arg0, arg1) +} + +// StringCustomErr mocks base method. +func (m *MockRandom) StringCustomErr(arg0 int, arg1 string) (string, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "StringCustomErr", arg0, arg1) + ret0, _ := ret[0].(string) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// StringCustomErr indicates an expected call of StringCustomErr. +func (mr *MockRandomMockRecorder) StringCustomErr(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringCustomErr", reflect.TypeOf((*MockRandom)(nil).StringCustomErr), arg0, arg1) +} |
