helloworld

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 Config

type Config struct {
	Name string
}

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

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

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.

func (*MockHelloWorldInterceptorMockRecorder) SayHello added in v0.14.3

SayHello indicates an expected call of SayHello.

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

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.

func (*MockHelloWorldLazyMockRecorder) SayHello added in v0.14.3

func (mr *MockHelloWorldLazyMockRecorder) SayHello(ctx any) *gomock.Call

SayHello indicates an expected call of SayHello.

type MockHelloWorldMockRecorder

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

MockHelloWorldMockRecorder is the mock recorder for MockHelloWorld.

func (*MockHelloWorldMockRecorder) SayHello

func (mr *MockHelloWorldMockRecorder) SayHello(ctx any) *gomock.Call

SayHello indicates an expected call of SayHello.

Jump to

Keyboard shortcuts

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