mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

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

func (_m *Validator) EXPECT() *Validator_Expecter

func (*Validator) Name

func (_m *Validator) Name() string

Name provides a mock function with no fields

func (*Validator) Validate

Validate provides a mock function with given fields: ctx, pr

type Validator_Expecter

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

func (*Validator_Expecter) Name

Name is a helper method to define mock.On call

func (*Validator_Expecter) Validate

func (_e *Validator_Expecter) Validate(ctx interface{}, pr interface{}) *Validator_Validate_Call

Validate is a helper method to define mock.On call

  • ctx context.Context
  • pr github.PullRequest

type Validator_Name_Call

type Validator_Name_Call struct {
	*mock.Call
}

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

func (*Validator_Name_Call) Return

func (*Validator_Name_Call) Run

func (_c *Validator_Name_Call) Run(run func()) *Validator_Name_Call

func (*Validator_Name_Call) RunAndReturn

func (_c *Validator_Name_Call) RunAndReturn(run func() string) *Validator_Name_Call

type Validator_Validate_Call

type Validator_Validate_Call struct {
	*mock.Call
}

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

func (*Validator_Validate_Call) Return

func (*Validator_Validate_Call) Run

func (*Validator_Validate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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