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

mock

package
v1.151.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMutator

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

MockMutator is a mock of Mutator interface.

func NewMockMutator

func NewMockMutator(ctrl *gomock.Controller) *MockMutator

NewMockMutator creates a new mock instance.

func (*MockMutator) EXPECT

func (m *MockMutator) EXPECT() *MockMutatorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMutator) Mutate

func (m *MockMutator) Mutate(ctx context.Context, newObj, oldObj client.Object) error

Mutate mocks base method.

type MockMutatorMockRecorder

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

MockMutatorMockRecorder is the mock recorder for MockMutator.

func (*MockMutatorMockRecorder) Mutate

func (mr *MockMutatorMockRecorder) Mutate(ctx, newObj, oldObj any) *gomock.Call

Mutate indicates an expected call of Mutate.

Jump to

Keyboard shortcuts

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