Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAnalyzedProposal

type MockAnalyzedProposal struct {
	mock.Mock
}

MockAnalyzedProposal is an autogenerated mock type for the AnalyzedProposal type

func NewMockAnalyzedProposal

func NewMockAnalyzedProposal(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAnalyzedProposal

NewMockAnalyzedProposal creates a new instance of MockAnalyzedProposal. 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 (*MockAnalyzedProposal) AddAnnotations

func (_mock *MockAnalyzedProposal) AddAnnotations(annotations ...analyzer.Annotation)

AddAnnotations provides a mock function for the type MockAnalyzedProposal

func (*MockAnalyzedProposal) Annotations

func (_mock *MockAnalyzedProposal) Annotations() analyzer.Annotations

Annotations provides a mock function for the type MockAnalyzedProposal

func (*MockAnalyzedProposal) BatchOperations

func (_mock *MockAnalyzedProposal) BatchOperations() analyzer.AnalyzedBatchOperations

BatchOperations provides a mock function for the type MockAnalyzedProposal

func (*MockAnalyzedProposal) EXPECT

type MockAnalyzedProposal_AddAnnotations_Call

type MockAnalyzedProposal_AddAnnotations_Call struct {
	*mock.Call
}

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

func (*MockAnalyzedProposal_AddAnnotations_Call) Return

func (*MockAnalyzedProposal_AddAnnotations_Call) Run

func (*MockAnalyzedProposal_AddAnnotations_Call) RunAndReturn

type MockAnalyzedProposal_Annotations_Call

type MockAnalyzedProposal_Annotations_Call struct {
	*mock.Call
}

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

func (*MockAnalyzedProposal_Annotations_Call) Return

func (*MockAnalyzedProposal_Annotations_Call) Run

func (*MockAnalyzedProposal_Annotations_Call) RunAndReturn

type MockAnalyzedProposal_BatchOperations_Call

type MockAnalyzedProposal_BatchOperations_Call struct {
	*mock.Call
}

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

func (*MockAnalyzedProposal_BatchOperations_Call) Return

func (*MockAnalyzedProposal_BatchOperations_Call) Run

func (*MockAnalyzedProposal_BatchOperations_Call) RunAndReturn

type MockAnalyzedProposal_Expecter

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

func (*MockAnalyzedProposal_Expecter) AddAnnotations

func (_e *MockAnalyzedProposal_Expecter) AddAnnotations(annotations ...interface{}) *MockAnalyzedProposal_AddAnnotations_Call

AddAnnotations is a helper method to define mock.On call

  • annotations ...analyzer.Annotation

func (*MockAnalyzedProposal_Expecter) Annotations

Annotations is a helper method to define mock.On call

func (*MockAnalyzedProposal_Expecter) BatchOperations

BatchOperations is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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