crypt

package
v1.14.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypt

type Crypt struct {
	mock.Mock
}

Crypt is an autogenerated mock type for the Crypt type

func NewCrypt

func NewCrypt(t interface {
	mock.TestingT
	Cleanup(func())
}) *Crypt

NewCrypt creates a new instance of Crypt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Crypt) DecryptString

func (_m *Crypt) DecryptString(payload string) (string, error)

DecryptString provides a mock function with given fields: payload

func (*Crypt) EXPECT

func (_m *Crypt) EXPECT() *Crypt_Expecter

func (*Crypt) EncryptString

func (_m *Crypt) EncryptString(value string) (string, error)

EncryptString provides a mock function with given fields: value

type Crypt_DecryptString_Call

type Crypt_DecryptString_Call struct {
	*mock.Call
}

Crypt_DecryptString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecryptString'

func (*Crypt_DecryptString_Call) Return

func (*Crypt_DecryptString_Call) Run

func (_c *Crypt_DecryptString_Call) Run(run func(payload string)) *Crypt_DecryptString_Call

func (*Crypt_DecryptString_Call) RunAndReturn

func (_c *Crypt_DecryptString_Call) RunAndReturn(run func(string) (string, error)) *Crypt_DecryptString_Call

type Crypt_EncryptString_Call

type Crypt_EncryptString_Call struct {
	*mock.Call
}

Crypt_EncryptString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EncryptString'

func (*Crypt_EncryptString_Call) Return

func (*Crypt_EncryptString_Call) Run

func (_c *Crypt_EncryptString_Call) Run(run func(value string)) *Crypt_EncryptString_Call

func (*Crypt_EncryptString_Call) RunAndReturn

func (_c *Crypt_EncryptString_Call) RunAndReturn(run func(string) (string, error)) *Crypt_EncryptString_Call

type Crypt_Expecter

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

func (*Crypt_Expecter) DecryptString

func (_e *Crypt_Expecter) DecryptString(payload interface{}) *Crypt_DecryptString_Call

DecryptString is a helper method to define mock.On call

  • payload string

func (*Crypt_Expecter) EncryptString

func (_e *Crypt_Expecter) EncryptString(value interface{}) *Crypt_EncryptString_Call

EncryptString is a helper method to define mock.On call

  • value string

Jump to

Keyboard shortcuts

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