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 native package verification test doubles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVerifier

type MockVerifier struct {
	mock.Mock
}

MockVerifier is an autogenerated mock type for the Verifier type

func NewMockVerifier

func NewMockVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVerifier

NewMockVerifier creates a new instance of MockVerifier. 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 (*MockVerifier) EXPECT

func (_m *MockVerifier) EXPECT() *MockVerifier_Expecter

func (*MockVerifier) Verify

func (_mock *MockVerifier) Verify(ctx context.Context, request pkgrepo.VerificationRequest) error

Verify provides a mock function for the type MockVerifier

type MockVerifier_Expecter

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

func (*MockVerifier_Expecter) Verify

func (_e *MockVerifier_Expecter) Verify(ctx any, request any) *MockVerifier_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • request pkgrepo.VerificationRequest

type MockVerifier_Verify_Call

type MockVerifier_Verify_Call struct {
	*mock.Call
}

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

func (*MockVerifier_Verify_Call) Return

func (*MockVerifier_Verify_Call) Run

func (*MockVerifier_Verify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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