Documentation
¶
Overview ¶
Package mocks provides generated OpenPGP signing test doubles.
Index ¶
- type MockSigner
- type MockSigner_ClearSign_Call
- func (_c *MockSigner_ClearSign_Call) Return(err error) *MockSigner_ClearSign_Call
- func (_c *MockSigner_ClearSign_Call) Run(run func(ctx context.Context, request pkgrepo.SignRequest)) *MockSigner_ClearSign_Call
- func (_c *MockSigner_ClearSign_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.SignRequest) error) *MockSigner_ClearSign_Call
- type MockSigner_DetachSign_Call
- func (_c *MockSigner_DetachSign_Call) Return(err error) *MockSigner_DetachSign_Call
- func (_c *MockSigner_DetachSign_Call) Run(run func(ctx context.Context, request pkgrepo.SignRequest)) *MockSigner_DetachSign_Call
- func (_c *MockSigner_DetachSign_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.SignRequest) error) *MockSigner_DetachSign_Call
- type MockSigner_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSigner ¶
MockSigner is an autogenerated mock type for the Signer type
func NewMockSigner ¶
func NewMockSigner(t interface {
mock.TestingT
Cleanup(func())
}) *MockSigner
NewMockSigner creates a new instance of MockSigner. 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 (*MockSigner) ClearSign ¶
func (_mock *MockSigner) ClearSign(ctx context.Context, request pkgrepo.SignRequest) error
ClearSign provides a mock function for the type MockSigner
func (*MockSigner) DetachSign ¶
func (_mock *MockSigner) DetachSign(ctx context.Context, request pkgrepo.SignRequest) error
DetachSign provides a mock function for the type MockSigner
func (*MockSigner) EXPECT ¶
func (_m *MockSigner) EXPECT() *MockSigner_Expecter
type MockSigner_ClearSign_Call ¶
MockSigner_ClearSign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearSign'
func (*MockSigner_ClearSign_Call) Return ¶
func (_c *MockSigner_ClearSign_Call) Return(err error) *MockSigner_ClearSign_Call
func (*MockSigner_ClearSign_Call) Run ¶
func (_c *MockSigner_ClearSign_Call) Run(run func(ctx context.Context, request pkgrepo.SignRequest)) *MockSigner_ClearSign_Call
func (*MockSigner_ClearSign_Call) RunAndReturn ¶
func (_c *MockSigner_ClearSign_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.SignRequest) error) *MockSigner_ClearSign_Call
type MockSigner_DetachSign_Call ¶
MockSigner_DetachSign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachSign'
func (*MockSigner_DetachSign_Call) Return ¶
func (_c *MockSigner_DetachSign_Call) Return(err error) *MockSigner_DetachSign_Call
func (*MockSigner_DetachSign_Call) Run ¶
func (_c *MockSigner_DetachSign_Call) Run(run func(ctx context.Context, request pkgrepo.SignRequest)) *MockSigner_DetachSign_Call
func (*MockSigner_DetachSign_Call) RunAndReturn ¶
func (_c *MockSigner_DetachSign_Call) RunAndReturn(run func(ctx context.Context, request pkgrepo.SignRequest) error) *MockSigner_DetachSign_Call
type MockSigner_Expecter ¶
type MockSigner_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSigner_Expecter) ClearSign ¶
func (_e *MockSigner_Expecter) ClearSign(ctx any, request any) *MockSigner_ClearSign_Call
ClearSign is a helper method to define mock.On call
- ctx context.Context
- request pkgrepo.SignRequest
func (*MockSigner_Expecter) DetachSign ¶
func (_e *MockSigner_Expecter) DetachSign(ctx any, request any) *MockSigner_DetachSign_Call
DetachSign is a helper method to define mock.On call
- ctx context.Context
- request pkgrepo.SignRequest