mocks

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks provides generated OpenPGP signing test doubles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSigner

type MockSigner struct {
	mock.Mock
}

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

type MockSigner_ClearSign_Call struct {
	*mock.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 (*MockSigner_ClearSign_Call) Run

func (*MockSigner_ClearSign_Call) RunAndReturn

type MockSigner_DetachSign_Call

type MockSigner_DetachSign_Call struct {
	*mock.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 (*MockSigner_DetachSign_Call) Run

func (*MockSigner_DetachSign_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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