fixtures

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fixtures is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMatcher

func NewMatcher(f func(interface{}) bool, s string) gomock.Matcher

NewMatcher returns a new gomock.Matcher that uses the given callback to match.

Types

type Closer

type Closer interface {
	Close() error
}

Closer allows to mock an io.Closer.

type ContextKey

type ContextKey int

ContextKey represents a context key.

const (
	FirstContextKey  ContextKey = iota
	SecondContextKey ContextKey = iota
	ThirdContextKey  ContextKey = iota
	FourthContextKey ContextKey = iota
)

Known context keys.

type Initializer

type Initializer interface {
	Initialize(ctx context.Context) (injectz.Injector, injectz.Releaser)
}

Initializer allows to mock an Initializer func.

type Injector

type Injector interface {
	Inject(context.Context) context.Context
}

Injector allows to mock an Injector func.

type MockCloser

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

MockCloser is a mock of Closer interface.

func NewMockCloser

func NewMockCloser(ctrl *gomock.Controller) *MockCloser

NewMockCloser creates a new mock instance.

func (*MockCloser) Close

func (m *MockCloser) Close() error

Close mocks base method.

func (*MockCloser) EXPECT

func (m *MockCloser) EXPECT() *MockCloserMockRecorder

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

type MockCloserMockRecorder

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

MockCloserMockRecorder is the mock recorder for MockCloser.

func (*MockCloserMockRecorder) Close

func (mr *MockCloserMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

type MockInitializer

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

MockInitializer is a mock of Initializer interface.

func NewMockInitializer

func NewMockInitializer(ctrl *gomock.Controller) *MockInitializer

NewMockInitializer creates a new mock instance.

func (*MockInitializer) EXPECT

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

func (*MockInitializer) Initialize

Initialize mocks base method.

type MockInitializerMockRecorder

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

MockInitializerMockRecorder is the mock recorder for MockInitializer.

func (*MockInitializerMockRecorder) Initialize

func (mr *MockInitializerMockRecorder) Initialize(ctx interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

type MockInjector

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

MockInjector is a mock of Injector interface.

func NewMockInjector

func NewMockInjector(ctrl *gomock.Controller) *MockInjector

NewMockInjector creates a new mock instance.

func (*MockInjector) EXPECT

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

func (*MockInjector) Inject

func (m *MockInjector) Inject(arg0 context.Context) context.Context

Inject mocks base method.

type MockInjectorMockRecorder

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

MockInjectorMockRecorder is the mock recorder for MockInjector.

func (*MockInjectorMockRecorder) Inject

func (mr *MockInjectorMockRecorder) Inject(arg0 interface{}) *gomock.Call

Inject indicates an expected call of Inject.

type MockReleaser

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

MockReleaser is a mock of Releaser interface.

func NewMockReleaser

func NewMockReleaser(ctrl *gomock.Controller) *MockReleaser

NewMockReleaser creates a new mock instance.

func (*MockReleaser) EXPECT

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

func (*MockReleaser) Release

func (m *MockReleaser) Release()

Release mocks base method.

type MockReleaserMockRecorder

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

MockReleaserMockRecorder is the mock recorder for MockReleaser.

func (*MockReleaserMockRecorder) Release

func (mr *MockReleaserMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release.

type Releaser

type Releaser interface {
	Release()
}

Releaser allows to mock a Releaser func.

Jump to

Keyboard shortcuts

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