cryptomock

package
v1.0.0-alpha.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cryptomock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCrypter

type MockCrypter struct {
	// contains filtered or unexported fields
}

MockCrypter is a mock of Crypter interface.

func NewMockCrypter

func NewMockCrypter(ctrl *gomock.Controller) *MockCrypter

NewMockCrypter creates a new mock instance.

func (*MockCrypter) Decrypt

func (m *MockCrypter) Decrypt(arg0 string) (string, error)

Decrypt mocks base method.

func (*MockCrypter) EXPECT

func (m *MockCrypter) EXPECT() *MockCrypterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCrypter) Encrypt

func (m *MockCrypter) Encrypt(arg0 string) (string, error)

Encrypt mocks base method.

type MockCrypterDecryptCall

type MockCrypterDecryptCall struct {
	*gomock.Call
}

MockCrypterDecryptCall wrap *gomock.Call

func (*MockCrypterDecryptCall) Do

Do rewrite *gomock.Call.Do

func (*MockCrypterDecryptCall) DoAndReturn

func (c *MockCrypterDecryptCall) DoAndReturn(f func(string) (string, error)) *MockCrypterDecryptCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCrypterDecryptCall) Return

Return rewrite *gomock.Call.Return

type MockCrypterEncryptCall

type MockCrypterEncryptCall struct {
	*gomock.Call
}

MockCrypterEncryptCall wrap *gomock.Call

func (*MockCrypterEncryptCall) Do

Do rewrite *gomock.Call.Do

func (*MockCrypterEncryptCall) DoAndReturn

func (c *MockCrypterEncryptCall) DoAndReturn(f func(string) (string, error)) *MockCrypterEncryptCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCrypterEncryptCall) Return

Return rewrite *gomock.Call.Return

type MockCrypterMockRecorder

type MockCrypterMockRecorder struct {
	// contains filtered or unexported fields
}

MockCrypterMockRecorder is the mock recorder for MockCrypter.

func (*MockCrypterMockRecorder) Decrypt

Decrypt indicates an expected call of Decrypt.

func (*MockCrypterMockRecorder) Encrypt

Encrypt indicates an expected call of Encrypt.

type MockDecrypter

type MockDecrypter struct {
	// contains filtered or unexported fields
}

MockDecrypter is a mock of Decrypter interface.

func NewMockDecrypter

func NewMockDecrypter(ctrl *gomock.Controller) *MockDecrypter

NewMockDecrypter creates a new mock instance.

func (*MockDecrypter) Decrypt

func (m *MockDecrypter) Decrypt(arg0 string) (string, error)

Decrypt mocks base method.

func (*MockDecrypter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockDecrypterDecryptCall

type MockDecrypterDecryptCall struct {
	*gomock.Call
}

MockDecrypterDecryptCall wrap *gomock.Call

func (*MockDecrypterDecryptCall) Do

Do rewrite *gomock.Call.Do

func (*MockDecrypterDecryptCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDecrypterDecryptCall) Return

Return rewrite *gomock.Call.Return

type MockDecrypterMockRecorder

type MockDecrypterMockRecorder struct {
	// contains filtered or unexported fields
}

MockDecrypterMockRecorder is the mock recorder for MockDecrypter.

func (*MockDecrypterMockRecorder) Decrypt

Decrypt indicates an expected call of Decrypt.

type MockEncrypter

type MockEncrypter struct {
	// contains filtered or unexported fields
}

MockEncrypter is a mock of Encrypter interface.

func NewMockEncrypter

func NewMockEncrypter(ctrl *gomock.Controller) *MockEncrypter

NewMockEncrypter creates a new mock instance.

func (*MockEncrypter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEncrypter) Encrypt

func (m *MockEncrypter) Encrypt(arg0 string) (string, error)

Encrypt mocks base method.

type MockEncrypterEncryptCall

type MockEncrypterEncryptCall struct {
	*gomock.Call
}

MockEncrypterEncryptCall wrap *gomock.Call

func (*MockEncrypterEncryptCall) Do

Do rewrite *gomock.Call.Do

func (*MockEncrypterEncryptCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEncrypterEncryptCall) Return

Return rewrite *gomock.Call.Return

type MockEncrypterMockRecorder

type MockEncrypterMockRecorder struct {
	// contains filtered or unexported fields
}

MockEncrypterMockRecorder is the mock recorder for MockEncrypter.

func (*MockEncrypterMockRecorder) Encrypt

Encrypt indicates an expected call of Encrypt.

type MockHashValidator

type MockHashValidator struct {
	// contains filtered or unexported fields
}

MockHashValidator is a mock of HashValidator interface.

func NewMockHashValidator

func NewMockHashValidator(ctrl *gomock.Controller) *MockHashValidator

NewMockHashValidator creates a new mock instance.

func (*MockHashValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHashValidator) ValidateHash

func (m *MockHashValidator) ValidateHash(encoded string) error

ValidateHash mocks base method.

type MockHashValidatorMockRecorder

type MockHashValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockHashValidatorMockRecorder is the mock recorder for MockHashValidator.

func (*MockHashValidatorMockRecorder) ValidateHash

ValidateHash indicates an expected call of ValidateHash.

type MockHashValidatorValidateHashCall

type MockHashValidatorValidateHashCall struct {
	*gomock.Call
}

MockHashValidatorValidateHashCall wrap *gomock.Call

func (*MockHashValidatorValidateHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockHashValidatorValidateHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHashValidatorValidateHashCall) Return

Return rewrite *gomock.Call.Return

type MockHashVerifier

type MockHashVerifier struct {
	// contains filtered or unexported fields
}

MockHashVerifier is a mock of HashVerifier interface.

func NewMockHashVerifier

func NewMockHashVerifier(ctrl *gomock.Controller) *MockHashVerifier

NewMockHashVerifier creates a new mock instance.

func (*MockHashVerifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHashVerifier) VerifyHash

func (m *MockHashVerifier) VerifyHash(encoded, target string) error

VerifyHash mocks base method.

type MockHashVerifierMockRecorder

type MockHashVerifierMockRecorder struct {
	// contains filtered or unexported fields
}

MockHashVerifierMockRecorder is the mock recorder for MockHashVerifier.

func (*MockHashVerifierMockRecorder) VerifyHash

func (mr *MockHashVerifierMockRecorder) VerifyHash(encoded, target any) *MockHashVerifierVerifyHashCall

VerifyHash indicates an expected call of VerifyHash.

type MockHashVerifierVerifyHashCall

type MockHashVerifierVerifyHashCall struct {
	*gomock.Call
}

MockHashVerifierVerifyHashCall wrap *gomock.Call

func (*MockHashVerifierVerifyHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockHashVerifierVerifyHashCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHashVerifierVerifyHashCall) Return

Return rewrite *gomock.Call.Return

type MockHasher

type MockHasher struct {
	// contains filtered or unexported fields
}

MockHasher is a mock of Hasher interface.

func NewMockHasher

func NewMockHasher(ctrl *gomock.Controller) *MockHasher

NewMockHasher creates a new mock instance.

func (*MockHasher) EXPECT

func (m *MockHasher) EXPECT() *MockHasherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHasher) Hash

func (m *MockHasher) Hash(arg0 string) (string, error)

Hash mocks base method.

type MockHasherHashCall

type MockHasherHashCall struct {
	*gomock.Call
}

MockHasherHashCall wrap *gomock.Call

func (*MockHasherHashCall) Do

Do rewrite *gomock.Call.Do

func (*MockHasherHashCall) DoAndReturn

func (c *MockHasherHashCall) DoAndReturn(f func(string) (string, error)) *MockHasherHashCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHasherHashCall) Return

func (c *MockHasherHashCall) Return(arg0 string, arg1 error) *MockHasherHashCall

Return rewrite *gomock.Call.Return

type MockHasherMockRecorder

type MockHasherMockRecorder struct {
	// contains filtered or unexported fields
}

MockHasherMockRecorder is the mock recorder for MockHasher.

func (*MockHasherMockRecorder) Hash

Hash indicates an expected call of Hash.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL