Documentation ¶
Index ¶
- func Init(name string) secrets.Text
- type Ring
- type RingMock
- func (mmDecrypt *RingMock) Decrypt(e1 safe.Encrypted) (t1 secrets.Text)
- func (mmDecrypt *RingMock) DecryptAfterCounter() uint64
- func (mmDecrypt *RingMock) DecryptBeforeCounter() uint64
- func (mmEncrypt *RingMock) Encrypt(t1 secrets.Text) (e1 safe.Encrypted)
- func (mmEncrypt *RingMock) EncryptAfterCounter() uint64
- func (mmEncrypt *RingMock) EncryptBeforeCounter() uint64
- func (m *RingMock) MinimockDecryptDone() bool
- func (m *RingMock) MinimockDecryptInspect()
- func (m *RingMock) MinimockEncryptDone() bool
- func (m *RingMock) MinimockEncryptInspect()
- func (m *RingMock) MinimockFinish()
- func (m *RingMock) MinimockWait(timeout mm_time.Duration)
- type RingMockDecryptExpectation
- type RingMockDecryptParams
- type RingMockDecryptResults
- type RingMockEncryptExpectation
- type RingMockEncryptParams
- type RingMockEncryptResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RingMock ¶
type RingMock struct { DecryptMock mRingMockDecrypt EncryptMock mRingMockEncrypt // contains filtered or unexported fields }
RingMock implements Ring
func NewRingMock ¶
func NewRingMock(t minimock.Tester) *RingMock
NewRingMock returns a mock for Ring
func (*RingMock) DecryptAfterCounter ¶
DecryptAfterCounter returns a count of finished RingMock.Decrypt invocations
func (*RingMock) DecryptBeforeCounter ¶
DecryptBeforeCounter returns a count of RingMock.Decrypt invocations
func (*RingMock) EncryptAfterCounter ¶
EncryptAfterCounter returns a count of finished RingMock.Encrypt invocations
func (*RingMock) EncryptBeforeCounter ¶
EncryptBeforeCounter returns a count of RingMock.Encrypt invocations
func (*RingMock) MinimockDecryptDone ¶
MinimockDecryptDone returns true if the count of the Decrypt invocations corresponds the number of defined expectations
func (*RingMock) MinimockDecryptInspect ¶
func (m *RingMock) MinimockDecryptInspect()
MinimockDecryptInspect logs each unmet expectation
func (*RingMock) MinimockEncryptDone ¶
MinimockEncryptDone returns true if the count of the Encrypt invocations corresponds the number of defined expectations
func (*RingMock) MinimockEncryptInspect ¶
func (m *RingMock) MinimockEncryptInspect()
MinimockEncryptInspect logs each unmet expectation
func (*RingMock) MinimockFinish ¶
func (m *RingMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RingMock) MinimockWait ¶
MinimockWait waits for all mocked methods to be called the expected number of times
type RingMockDecryptExpectation ¶
type RingMockDecryptExpectation struct { Counter uint64 // contains filtered or unexported fields }
RingMockDecryptExpectation specifies expectation struct of the Ring.Decrypt
type RingMockDecryptParams ¶
type RingMockDecryptParams struct {
// contains filtered or unexported fields
}
RingMockDecryptParams contains parameters of the Ring.Decrypt
type RingMockDecryptResults ¶
type RingMockDecryptResults struct {
// contains filtered or unexported fields
}
RingMockDecryptResults contains results of the Ring.Decrypt
type RingMockEncryptExpectation ¶
type RingMockEncryptExpectation struct { Counter uint64 // contains filtered or unexported fields }
RingMockEncryptExpectation specifies expectation struct of the Ring.Encrypt
type RingMockEncryptParams ¶
type RingMockEncryptParams struct {
// contains filtered or unexported fields
}
RingMockEncryptParams contains parameters of the Ring.Encrypt
type RingMockEncryptResults ¶
type RingMockEncryptResults struct {
// contains filtered or unexported fields
}
RingMockEncryptResults contains results of the Ring.Encrypt