2020-03-30 11:44:17 +02:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: code.go
|
2023-11-22 12:56:43 +02:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -source code.go -destination ./code_mock.go -package crypto
|
|
|
|
//
|
2024-04-05 12:35:49 +03:00
|
|
|
|
2020-03-30 11:44:17 +02:00
|
|
|
// Package crypto is a generated GoMock package.
|
|
|
|
package crypto
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2023-11-22 12:56:43 +02:00
|
|
|
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
2020-03-30 11:44:17 +02:00
|
|
|
)
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// MockGenerator is a mock of Generator interface.
|
2020-03-30 11:44:17 +02:00
|
|
|
type MockGenerator struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockGeneratorMockRecorder
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// MockGeneratorMockRecorder is the mock recorder for MockGenerator.
|
2020-03-30 11:44:17 +02:00
|
|
|
type MockGeneratorMockRecorder struct {
|
|
|
|
mock *MockGenerator
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// NewMockGenerator creates a new mock instance.
|
2020-03-30 11:44:17 +02:00
|
|
|
func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator {
|
|
|
|
mock := &MockGenerator{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockGeneratorMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-03-30 11:44:17 +02:00
|
|
|
func (m *MockGenerator) EXPECT() *MockGeneratorMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Alg mocks base method.
|
2024-04-05 12:35:49 +03:00
|
|
|
func (m *MockGenerator) Alg() EncryptionAlgorithm {
|
2020-03-30 11:44:17 +02:00
|
|
|
m.ctrl.T.Helper()
|
2023-11-22 12:56:43 +02:00
|
|
|
ret := m.ctrl.Call(m, "Alg")
|
2024-04-05 12:35:49 +03:00
|
|
|
ret0, _ := ret[0].(EncryptionAlgorithm)
|
2020-03-30 11:44:17 +02:00
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Alg indicates an expected call of Alg.
|
|
|
|
func (mr *MockGeneratorMockRecorder) Alg() *gomock.Call {
|
2020-03-30 11:44:17 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-11-22 12:56:43 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alg", reflect.TypeOf((*MockGenerator)(nil).Alg))
|
2020-03-30 11:44:17 +02:00
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Expiry mocks base method.
|
2020-03-30 11:44:17 +02:00
|
|
|
func (m *MockGenerator) Expiry() time.Duration {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Expiry")
|
|
|
|
ret0, _ := ret[0].(time.Duration)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Expiry indicates an expected call of Expiry.
|
2020-03-30 11:44:17 +02:00
|
|
|
func (mr *MockGeneratorMockRecorder) Expiry() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Expiry", reflect.TypeOf((*MockGenerator)(nil).Expiry))
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Length mocks base method.
|
|
|
|
func (m *MockGenerator) Length() uint {
|
2020-03-30 11:44:17 +02:00
|
|
|
m.ctrl.T.Helper()
|
2023-11-22 12:56:43 +02:00
|
|
|
ret := m.ctrl.Call(m, "Length")
|
|
|
|
ret0, _ := ret[0].(uint)
|
2020-03-30 11:44:17 +02:00
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Length indicates an expected call of Length.
|
|
|
|
func (mr *MockGeneratorMockRecorder) Length() *gomock.Call {
|
2020-03-30 11:44:17 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-11-22 12:56:43 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Length", reflect.TypeOf((*MockGenerator)(nil).Length))
|
2020-03-30 11:44:17 +02:00
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Runes mocks base method.
|
2020-03-30 11:44:17 +02:00
|
|
|
func (m *MockGenerator) Runes() []rune {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Runes")
|
|
|
|
ret0, _ := ret[0].([]rune)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 12:56:43 +02:00
|
|
|
// Runes indicates an expected call of Runes.
|
2020-03-30 11:44:17 +02:00
|
|
|
func (mr *MockGeneratorMockRecorder) Runes() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Runes", reflect.TypeOf((*MockGenerator)(nil).Runes))
|
|
|
|
}
|