Documentation ¶
Overview ¶
Package helloworld is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { kod.Implements[kod.Main] kod.WithGlobalConfig[GlobalConfig] HelloWorld kod.Ref[HelloWorld] HelloWorldLazy kod.Ref[HelloWorldLazy] HelloWorldInterceptor kod.Ref[HelloWorldInterceptor] }
type GlobalConfig ¶
type GlobalConfig struct {
Name string
}
type HelloWorld ¶
type HelloWorld interface { // SayHello is implemented by [helloWorld.SayHello] // // SayHello ... // line two SayHello(ctx context.Context) }
HelloWorld is implemented by [helloWorld], which can be mocked with NewMockHelloWorld.
HelloWorld ...
type HelloWorldInterceptor ¶ added in v0.14.3
type HelloWorldInterceptor interface { // SayHello is implemented by [helloWorldInterceptor.SayHello] // // SayHello ... SayHello(ctx context.Context) }
HelloWorldInterceptor is implemented by [helloWorldInterceptor], which can be mocked with NewMockHelloWorldInterceptor.
helloWorldInterceptor ...
type HelloWorldLazy ¶ added in v0.14.3
type HelloWorldLazy interface { // SayHello is implemented by [lazyHelloWorld.SayHello] // // SayHello ... SayHello(ctx context.Context) }
HelloWorldLazy is implemented by [lazyHelloWorld], which can be mocked with NewMockHelloWorldLazy.
type MockHelloWorld ¶
type MockHelloWorld struct {
// contains filtered or unexported fields
}
MockHelloWorld is a mock of HelloWorld interface.
func NewMockHelloWorld ¶
func NewMockHelloWorld(ctrl *gomock.Controller) *MockHelloWorld
NewMockHelloWorld creates a new mock instance.
func (*MockHelloWorld) EXPECT ¶
func (m *MockHelloWorld) EXPECT() *MockHelloWorldMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelloWorld) SayHello ¶
func (m *MockHelloWorld) SayHello(ctx context.Context)
SayHello mocks base method.
type MockHelloWorldInterceptor ¶ added in v0.14.3
type MockHelloWorldInterceptor struct {
// contains filtered or unexported fields
}
MockHelloWorldInterceptor is a mock of HelloWorldInterceptor interface.
func NewMockHelloWorldInterceptor ¶ added in v0.14.3
func NewMockHelloWorldInterceptor(ctrl *gomock.Controller) *MockHelloWorldInterceptor
NewMockHelloWorldInterceptor creates a new mock instance.
func (*MockHelloWorldInterceptor) EXPECT ¶ added in v0.14.3
func (m *MockHelloWorldInterceptor) EXPECT() *MockHelloWorldInterceptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelloWorldInterceptor) SayHello ¶ added in v0.14.3
func (m *MockHelloWorldInterceptor) SayHello(ctx context.Context)
SayHello mocks base method.
type MockHelloWorldInterceptorMockRecorder ¶ added in v0.14.3
type MockHelloWorldInterceptorMockRecorder struct {
// contains filtered or unexported fields
}
MockHelloWorldInterceptorMockRecorder is the mock recorder for MockHelloWorldInterceptor.
type MockHelloWorldLazy ¶ added in v0.14.3
type MockHelloWorldLazy struct {
// contains filtered or unexported fields
}
MockHelloWorldLazy is a mock of HelloWorldLazy interface.
func NewMockHelloWorldLazy ¶ added in v0.14.3
func NewMockHelloWorldLazy(ctrl *gomock.Controller) *MockHelloWorldLazy
NewMockHelloWorldLazy creates a new mock instance.
func (*MockHelloWorldLazy) EXPECT ¶ added in v0.14.3
func (m *MockHelloWorldLazy) EXPECT() *MockHelloWorldLazyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelloWorldLazy) SayHello ¶ added in v0.14.3
func (m *MockHelloWorldLazy) SayHello(ctx context.Context)
SayHello mocks base method.
type MockHelloWorldLazyMockRecorder ¶ added in v0.14.3
type MockHelloWorldLazyMockRecorder struct {
// contains filtered or unexported fields
}
MockHelloWorldLazyMockRecorder is the mock recorder for MockHelloWorldLazy.
type MockHelloWorldMockRecorder ¶
type MockHelloWorldMockRecorder struct {
// contains filtered or unexported fields
}
MockHelloWorldMockRecorder is the mock recorder for MockHelloWorld.