case4

package
v0.0.0-...-6cee9d2 Latest Latest
Warning

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

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

Documentation

Overview

Package case4 is a generated GoMock package.

Index

Constants

View Source
const (
	// Test1Component_Foo_FullMethodName is the full name of the method [test1Component.Foo].
	Test1Component_Foo_FullMethodName = "github.com/go-kod/kod/tests/case4/Test1Component.Foo"
	// Test2Component_Foo_FullMethodName is the full name of the method [test2Component.Foo].
	Test2Component_Foo_FullMethodName = "github.com/go-kod/kod/tests/case4/Test2Component.Foo"
	// Test3Component_Foo_FullMethodName is the full name of the method [test3Component.Foo].
	Test3Component_Foo_FullMethodName = "github.com/go-kod/kod/tests/case4/Test3Component.Foo"
)

Full method names for components.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	kod.Implements[kod.Main]
	// contains filtered or unexported fields
}

func (*App) Run

func (app *App) Run(ctx context.Context) error

type FooReq

type FooReq struct {
	Id int
}

type MockTest1Component

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

MockTest1Component is a mock of Test1Component interface.

func NewMockTest1Component

func NewMockTest1Component(ctrl *gomock.Controller) *MockTest1Component

NewMockTest1Component creates a new mock instance.

func (*MockTest1Component) EXPECT

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

func (*MockTest1Component) Foo

func (m *MockTest1Component) Foo(ctx context.Context, req *FooReq) error

Foo mocks base method.

type MockTest1ComponentFooCall

type MockTest1ComponentFooCall struct {
	*gomock.Call
}

MockTest1ComponentFooCall wrap *gomock.Call

func (*MockTest1ComponentFooCall) Do

Do rewrite *gomock.Call.Do

func (*MockTest1ComponentFooCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTest1ComponentFooCall) Return

Return rewrite *gomock.Call.Return

type MockTest1ComponentMockRecorder

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

MockTest1ComponentMockRecorder is the mock recorder for MockTest1Component.

func (*MockTest1ComponentMockRecorder) Foo

Foo indicates an expected call of Foo.

type MockTest2Component

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

MockTest2Component is a mock of Test2Component interface.

func NewMockTest2Component

func NewMockTest2Component(ctrl *gomock.Controller) *MockTest2Component

NewMockTest2Component creates a new mock instance.

func (*MockTest2Component) EXPECT

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

func (*MockTest2Component) Foo

func (m *MockTest2Component) Foo(ctx context.Context, req *FooReq) error

Foo mocks base method.

type MockTest2ComponentFooCall

type MockTest2ComponentFooCall struct {
	*gomock.Call
}

MockTest2ComponentFooCall wrap *gomock.Call

func (*MockTest2ComponentFooCall) Do

Do rewrite *gomock.Call.Do

func (*MockTest2ComponentFooCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTest2ComponentFooCall) Return

Return rewrite *gomock.Call.Return

type MockTest2ComponentMockRecorder

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

MockTest2ComponentMockRecorder is the mock recorder for MockTest2Component.

func (*MockTest2ComponentMockRecorder) Foo

Foo indicates an expected call of Foo.

type MockTest3Component

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

MockTest3Component is a mock of Test3Component interface.

func NewMockTest3Component

func NewMockTest3Component(ctrl *gomock.Controller) *MockTest3Component

NewMockTest3Component creates a new mock instance.

func (*MockTest3Component) EXPECT

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

func (*MockTest3Component) Foo

func (m *MockTest3Component) Foo(ctx context.Context, req *FooReq) error

Foo mocks base method.

type MockTest3ComponentFooCall

type MockTest3ComponentFooCall struct {
	*gomock.Call
}

MockTest3ComponentFooCall wrap *gomock.Call

func (*MockTest3ComponentFooCall) Do

Do rewrite *gomock.Call.Do

func (*MockTest3ComponentFooCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTest3ComponentFooCall) Return

Return rewrite *gomock.Call.Return

type MockTest3ComponentMockRecorder

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

MockTest3ComponentMockRecorder is the mock recorder for MockTest3Component.

func (*MockTest3ComponentMockRecorder) Foo

Foo indicates an expected call of Foo.

type Test1Component

type Test1Component interface {
	// Foo is implemented by [test1Component.Foo]
	Foo(ctx context.Context, req *FooReq) error
}

Test1Component is implemented by [test1Component], which can be mocked with NewMockTest1Component.

type Test2Component

type Test2Component interface {
	// Foo is implemented by [test2Component.Foo]
	Foo(ctx context.Context, req *FooReq) error
}

Test2Component is implemented by [test2Component], which can be mocked with NewMockTest2Component.

type Test3Component

type Test3Component interface {
	// Foo is implemented by [test3Component.Foo]
	Foo(ctx context.Context, req *FooReq) error
}

Test3Component is implemented by [test3Component], which can be mocked with NewMockTest3Component.

Jump to

Keyboard shortcuts

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