case1

package
v0.0.0-...-3e302a9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package case1 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

func StartTrace

func StartTrace(ctx context.Context) context.Context

Types

type App

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

type FooReq

type FooReq struct {
	Id    int `validate:"lt=100"`
	Panic bool
}

type FooRes

type FooRes struct {
	Id int
}

type HTTPController

type HTTPController interface {
	// Foo is a http handler
	Foo(w http.ResponseWriter, r *http.Request)
}

httpControllerImpl is a component that implements HTTPController.

type MockHTTPController

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

MockHTTPController is a mock of HTTPController interface.

func NewMockHTTPController

func NewMockHTTPController(ctrl *gomock.Controller) *MockHTTPController

NewMockHTTPController creates a new mock instance.

func (*MockHTTPController) EXPECT

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

func (*MockHTTPController) Foo

Foo mocks base method.

type MockHTTPControllerMockRecorder

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

MockHTTPControllerMockRecorder is the mock recorder for MockHTTPController.

func (*MockHTTPControllerMockRecorder) Foo

Foo indicates an expected call of Foo.

type MockProtoValidateComponent

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

MockProtoValidateComponent is a mock of ProtoValidateComponent interface.

func NewMockProtoValidateComponent

func NewMockProtoValidateComponent(ctrl *gomock.Controller) *MockProtoValidateComponent

NewMockProtoValidateComponent creates a new mock instance.

func (*MockProtoValidateComponent) EXPECT

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

func (*MockProtoValidateComponent) Validate

Validate mocks base method.

type MockProtoValidateComponentMockRecorder

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

MockProtoValidateComponentMockRecorder is the mock recorder for MockProtoValidateComponent.

func (*MockProtoValidateComponentMockRecorder) Validate

func (mr *MockProtoValidateComponentMockRecorder) Validate(ctx, req any) *gomock.Call

Validate indicates an expected call of Validate.

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) (*FooRes, error)

Foo mocks base method.

type MockTest1ComponentMockRecorder

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

MockTest1ComponentMockRecorder is the mock recorder for MockTest1Component.

func (*MockTest1ComponentMockRecorder) Foo

func (mr *MockTest1ComponentMockRecorder) Foo(ctx, req any) *gomock.Call

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) GetClient

func (m *MockTest2Component) GetClient() *http.Client

GetClient mocks base method.

type MockTest2ComponentMockRecorder

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

MockTest2ComponentMockRecorder is the mock recorder for MockTest2Component.

func (*MockTest2ComponentMockRecorder) GetClient

func (mr *MockTest2ComponentMockRecorder) GetClient() *gomock.Call

GetClient indicates an expected call of GetClient.

type MockctxInterface

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

MockctxInterface is a mock of ctxInterface interface.

func NewMockctxInterface

func NewMockctxInterface(ctrl *gomock.Controller) *MockctxInterface

NewMockctxInterface creates a new mock instance.

func (*MockctxInterface) EXPECT

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

func (*MockctxInterface) Foo

func (m *MockctxInterface) Foo(ctx context.Context)

Foo mocks base method.

type MockctxInterfaceMockRecorder

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

MockctxInterfaceMockRecorder is the mock recorder for MockctxInterface.

func (*MockctxInterfaceMockRecorder) Foo

Foo indicates an expected call of Foo.

type MockpanicCaseInterface

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

MockpanicCaseInterface is a mock of panicCaseInterface interface.

func NewMockpanicCaseInterface

func NewMockpanicCaseInterface(ctrl *gomock.Controller) *MockpanicCaseInterface

NewMockpanicCaseInterface creates a new mock instance.

func (*MockpanicCaseInterface) EXPECT

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

func (*MockpanicCaseInterface) TestPanic

func (m *MockpanicCaseInterface) TestPanic(ctx context.Context)

TestPanic mocks base method.

type MockpanicCaseInterfaceMockRecorder

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

MockpanicCaseInterfaceMockRecorder is the mock recorder for MockpanicCaseInterface.

func (*MockpanicCaseInterfaceMockRecorder) TestPanic

func (mr *MockpanicCaseInterfaceMockRecorder) TestPanic(ctx any) *gomock.Call

TestPanic indicates an expected call of TestPanic.

type MockpanicNoRecvoeryCaseInterface

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

MockpanicNoRecvoeryCaseInterface is a mock of panicNoRecvoeryCaseInterface interface.

func NewMockpanicNoRecvoeryCaseInterface

func NewMockpanicNoRecvoeryCaseInterface(ctrl *gomock.Controller) *MockpanicNoRecvoeryCaseInterface

NewMockpanicNoRecvoeryCaseInterface creates a new mock instance.

func (*MockpanicNoRecvoeryCaseInterface) EXPECT

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

func (*MockpanicNoRecvoeryCaseInterface) TestPanic

TestPanic mocks base method.

type MockpanicNoRecvoeryCaseInterfaceMockRecorder

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

MockpanicNoRecvoeryCaseInterfaceMockRecorder is the mock recorder for MockpanicNoRecvoeryCaseInterface.

func (*MockpanicNoRecvoeryCaseInterfaceMockRecorder) TestPanic

TestPanic indicates an expected call of TestPanic.

type Mocktest1Controller

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

Mocktest1Controller is a mock of test1Controller interface.

func NewMocktest1Controller

func NewMocktest1Controller(ctrl *gomock.Controller) *Mocktest1Controller

NewMocktest1Controller creates a new mock instance.

func (*Mocktest1Controller) EXPECT

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

type Mocktest1ControllerMockRecorder

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

Mocktest1ControllerMockRecorder is the mock recorder for Mocktest1Controller.

type MocktestEchoController

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

MocktestEchoController is a mock of testEchoController interface.

func NewMocktestEchoController

func NewMocktestEchoController(ctrl *gomock.Controller) *MocktestEchoController

NewMocktestEchoController creates a new mock instance.

func (*MocktestEchoController) EXPECT

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

func (*MocktestEchoController) Error

Error mocks base method.

func (*MocktestEchoController) Hello

Hello mocks base method.

type MocktestEchoControllerMockRecorder

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

MocktestEchoControllerMockRecorder is the mock recorder for MocktestEchoController.

func (*MocktestEchoControllerMockRecorder) Error

Error indicates an expected call of Error.

func (*MocktestEchoControllerMockRecorder) Hello

Hello indicates an expected call of Hello.

type MocktestGinController

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

MocktestGinController is a mock of testGinController interface.

func NewMocktestGinController

func NewMocktestGinController(ctrl *gomock.Controller) *MocktestGinController

NewMocktestGinController creates a new mock instance.

func (*MocktestGinController) EXPECT

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

func (*MocktestGinController) Hello

func (m *MocktestGinController) Hello(c *gin.Context)

Hello mocks base method.

type MocktestGinControllerMockRecorder

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

MocktestGinControllerMockRecorder is the mock recorder for MocktestGinController.

func (*MocktestGinControllerMockRecorder) Hello

Hello indicates an expected call of Hello.

type MocktestRepository

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

MocktestRepository is a mock of testRepository interface.

func NewMocktestRepository

func NewMocktestRepository(ctrl *gomock.Controller) *MocktestRepository

NewMocktestRepository creates a new mock instance.

func (*MocktestRepository) EXPECT

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

func (*MocktestRepository) Foo

Foo mocks base method.

type MocktestRepositoryMockRecorder

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

MocktestRepositoryMockRecorder is the mock recorder for MocktestRepository.

func (*MocktestRepositoryMockRecorder) Foo

Foo indicates an expected call of Foo.

type MocktestService

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

MocktestService is a mock of testService interface.

func NewMocktestService

func NewMocktestService(ctrl *gomock.Controller) *MocktestService

NewMocktestService creates a new mock instance.

func (*MocktestService) EXPECT

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

func (*MocktestService) Foo

func (m *MocktestService) Foo(ctx context.Context) error

Foo mocks base method.

type MocktestServiceMockRecorder

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

MocktestServiceMockRecorder is the mock recorder for MocktestService.

func (*MocktestServiceMockRecorder) Foo

Foo indicates an expected call of Foo.

type ProtoValidateComponent

type ProtoValidateComponent interface {
	Validate(ctx context.Context, req *examplev1.Person) error
}

protoValidateComponent is a component that implements ProtoValidateComponent.

type Test1Component

type Test1Component interface {
	Foo(ctx context.Context, req *FooReq) (*FooRes, error)
}

test1Component is a component that implements Test1Component.

type Test2Component

type Test2Component interface {
	GetClient() *http.Client
}

test2Component is a component that implements Test2Component.

Jump to

Keyboard shortcuts

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