Documentation ¶
Overview ¶
Package tinjectz is a generated GoMock package.
Index ¶
- type Closer
- type ContextKey
- type Initializer
- type Injector
- type MockCloser
- type MockCloserCloseCall
- type MockCloserMockRecorder
- type MockInitializer
- type MockInitializerInitializeCall
- func (c *MockInitializerInitializeCall) Do(f func(context.Context) (injectz.Injector, injectz.Releaser)) *MockInitializerInitializeCall
- func (c *MockInitializerInitializeCall) DoAndReturn(f func(context.Context) (injectz.Injector, injectz.Releaser)) *MockInitializerInitializeCall
- func (c *MockInitializerInitializeCall) Return(arg0 injectz.Injector, arg1 injectz.Releaser) *MockInitializerInitializeCall
- type MockInitializerMockRecorder
- type MockInjector
- type MockInjectorInjectCall
- type MockInjectorMockRecorder
- type MockReleaser
- type MockReleaserMockRecorder
- type MockReleaserReleaseCall
- type Releaser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey int
ContextKey represents a context key.
const ( FirstContextKey ContextKey = iota SecondContextKey ContextKey = iota )
Known context keys.
type Initializer ¶
Initializer allows to mock an Initializer 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) EXPECT ¶
func (m *MockCloser) EXPECT() *MockCloserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCloserCloseCall ¶
MockCloserCloseCall wrap *gomock.Call
func (*MockCloserCloseCall) Do ¶
func (c *MockCloserCloseCall) Do(f func() error) *MockCloserCloseCall
Do rewrite *gomock.Call.Do
func (*MockCloserCloseCall) DoAndReturn ¶
func (c *MockCloserCloseCall) DoAndReturn(f func() error) *MockCloserCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCloserCloseCall) Return ¶
func (c *MockCloserCloseCall) Return(arg0 error) *MockCloserCloseCall
Return rewrite *gomock.Call.Return
type MockCloserMockRecorder ¶
type MockCloserMockRecorder struct {
// contains filtered or unexported fields
}
MockCloserMockRecorder is the mock recorder for MockCloser.
func (*MockCloserMockRecorder) Close ¶
func (mr *MockCloserMockRecorder) Close() *MockCloserCloseCall
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 ¶
func (m *MockInitializer) EXPECT() *MockInitializerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInitializer) Initialize ¶
Initialize mocks base method.
type MockInitializerInitializeCall ¶
MockInitializerInitializeCall wrap *gomock.Call
func (*MockInitializerInitializeCall) Do ¶
func (c *MockInitializerInitializeCall) Do(f func(context.Context) (injectz.Injector, injectz.Releaser)) *MockInitializerInitializeCall
Do rewrite *gomock.Call.Do
func (*MockInitializerInitializeCall) DoAndReturn ¶
func (c *MockInitializerInitializeCall) DoAndReturn(f func(context.Context) (injectz.Injector, injectz.Releaser)) *MockInitializerInitializeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInitializerInitializeCall) Return ¶
func (c *MockInitializerInitializeCall) Return(arg0 injectz.Injector, arg1 injectz.Releaser) *MockInitializerInitializeCall
Return rewrite *gomock.Call.Return
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 any) *MockInitializerInitializeCall
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 ¶
func (m *MockInjector) EXPECT() *MockInjectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInjectorInjectCall ¶
MockInjectorInjectCall wrap *gomock.Call
func (*MockInjectorInjectCall) Do ¶
func (c *MockInjectorInjectCall) Do(f func(context.Context) context.Context) *MockInjectorInjectCall
Do rewrite *gomock.Call.Do
func (*MockInjectorInjectCall) DoAndReturn ¶
func (c *MockInjectorInjectCall) DoAndReturn(f func(context.Context) context.Context) *MockInjectorInjectCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInjectorInjectCall) Return ¶
func (c *MockInjectorInjectCall) Return(arg0 context.Context) *MockInjectorInjectCall
Return rewrite *gomock.Call.Return
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 any) *MockInjectorInjectCall
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 ¶
func (m *MockReleaser) EXPECT() *MockReleaserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReleaserMockRecorder ¶
type MockReleaserMockRecorder struct {
// contains filtered or unexported fields
}
MockReleaserMockRecorder is the mock recorder for MockReleaser.
func (*MockReleaserMockRecorder) Release ¶
func (mr *MockReleaserMockRecorder) Release() *MockReleaserReleaseCall
Release indicates an expected call of Release.
type MockReleaserReleaseCall ¶
MockReleaserReleaseCall wrap *gomock.Call
func (*MockReleaserReleaseCall) Do ¶
func (c *MockReleaserReleaseCall) Do(f func()) *MockReleaserReleaseCall
Do rewrite *gomock.Call.Do
func (*MockReleaserReleaseCall) DoAndReturn ¶
func (c *MockReleaserReleaseCall) DoAndReturn(f func()) *MockReleaserReleaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockReleaserReleaseCall) Return ¶
func (c *MockReleaserReleaseCall) Return() *MockReleaserReleaseCall
Return rewrite *gomock.Call.Return