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

mocks

package
v4.0.14 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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatekeeper

type Gatekeeper struct {
	mock.Mock
}

Gatekeeper is an autogenerated mock type for the Gatekeeper type

func NewGatekeeper

func NewGatekeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *Gatekeeper

NewGatekeeper creates a new instance of Gatekeeper. 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 (*Gatekeeper) Context

func (_mock *Gatekeeper) Context(ctx context.Context) (context.Context, error)

Context provides a mock function for the type Gatekeeper

func (*Gatekeeper) ContextWithRequest

func (_mock *Gatekeeper) ContextWithRequest(ctx context.Context, req interface{}) (context.Context, error)

ContextWithRequest provides a mock function for the type Gatekeeper

func (*Gatekeeper) EXPECT

func (_m *Gatekeeper) EXPECT() *Gatekeeper_Expecter

func (*Gatekeeper) StreamServerInterceptor

func (_mock *Gatekeeper) StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor provides a mock function for the type Gatekeeper

func (*Gatekeeper) UnaryServerInterceptor

func (_mock *Gatekeeper) UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor provides a mock function for the type Gatekeeper

type Gatekeeper_ContextWithRequest_Call

type Gatekeeper_ContextWithRequest_Call struct {
	*mock.Call
}

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

func (*Gatekeeper_ContextWithRequest_Call) Return

func (*Gatekeeper_ContextWithRequest_Call) Run

func (*Gatekeeper_ContextWithRequest_Call) RunAndReturn

func (_c *Gatekeeper_ContextWithRequest_Call) RunAndReturn(run func(ctx context.Context, req interface{}) (context.Context, error)) *Gatekeeper_ContextWithRequest_Call

type Gatekeeper_Context_Call

type Gatekeeper_Context_Call struct {
	*mock.Call
}

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

func (*Gatekeeper_Context_Call) Return

func (*Gatekeeper_Context_Call) Run

func (*Gatekeeper_Context_Call) RunAndReturn

type Gatekeeper_Expecter

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

func (*Gatekeeper_Expecter) Context

func (_e *Gatekeeper_Expecter) Context(ctx interface{}) *Gatekeeper_Context_Call

Context is a helper method to define mock.On call

  • ctx context.Context

func (*Gatekeeper_Expecter) ContextWithRequest

func (_e *Gatekeeper_Expecter) ContextWithRequest(ctx interface{}, req interface{}) *Gatekeeper_ContextWithRequest_Call

ContextWithRequest is a helper method to define mock.On call

  • ctx context.Context
  • req interface{}

func (*Gatekeeper_Expecter) StreamServerInterceptor

func (_e *Gatekeeper_Expecter) StreamServerInterceptor() *Gatekeeper_StreamServerInterceptor_Call

StreamServerInterceptor is a helper method to define mock.On call

func (*Gatekeeper_Expecter) UnaryServerInterceptor

func (_e *Gatekeeper_Expecter) UnaryServerInterceptor() *Gatekeeper_UnaryServerInterceptor_Call

UnaryServerInterceptor is a helper method to define mock.On call

type Gatekeeper_StreamServerInterceptor_Call

type Gatekeeper_StreamServerInterceptor_Call struct {
	*mock.Call
}

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

func (*Gatekeeper_StreamServerInterceptor_Call) Return

func (*Gatekeeper_StreamServerInterceptor_Call) Run

func (*Gatekeeper_StreamServerInterceptor_Call) RunAndReturn

type Gatekeeper_UnaryServerInterceptor_Call

type Gatekeeper_UnaryServerInterceptor_Call struct {
	*mock.Call
}

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

func (*Gatekeeper_UnaryServerInterceptor_Call) Return

func (*Gatekeeper_UnaryServerInterceptor_Call) Run

func (*Gatekeeper_UnaryServerInterceptor_Call) RunAndReturn

Jump to

Keyboard shortcuts

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