Documentation ¶
Overview ¶
Package case1 is a generated GoMock package.
Index ¶
- func Run(ctx context.Context, app *App) error
- func StartTrace(ctx context.Context) context.Context
- type App
- type FooReq
- type FooRes
- type HTTPController
- type MockHTTPController
- type MockHTTPControllerMockRecorder
- type MockProtoValidateComponent
- type MockProtoValidateComponentMockRecorder
- type MockTest1Component
- type MockTest1ComponentMockRecorder
- type MockTest2Component
- type MockTest2ComponentMockRecorder
- type MockctxInterface
- type MockctxInterfaceMockRecorder
- type MockpanicCaseInterface
- type MockpanicCaseInterfaceMockRecorder
- type MockpanicNoRecvoeryCaseInterface
- type MockpanicNoRecvoeryCaseInterfaceMockRecorder
- type Mocktest1Controller
- type Mocktest1ControllerMockRecorder
- type MocktestEchoController
- type MocktestEchoControllerMockRecorder
- type MocktestGinController
- type MocktestGinControllerMockRecorder
- type MocktestRepository
- type MocktestRepositoryMockRecorder
- type MocktestService
- type MocktestServiceMockRecorder
- type ProtoValidateComponent
- type Test1Component
- type Test2Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 ¶
func (m *MockHTTPController) EXPECT() *MockHTTPControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHTTPController) Foo ¶
func (m *MockHTTPController) Foo(w http.ResponseWriter, r *http.Request)
Foo mocks base method.
type MockHTTPControllerMockRecorder ¶
type MockHTTPControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPControllerMockRecorder is the mock recorder for MockHTTPController.
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 ¶
func (m *MockProtoValidateComponent) EXPECT() *MockProtoValidateComponentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProtoValidateComponentMockRecorder ¶
type MockProtoValidateComponentMockRecorder struct {
// contains filtered or unexported fields
}
MockProtoValidateComponentMockRecorder is the mock recorder for MockProtoValidateComponent.
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 ¶
func (m *MockTest1Component) EXPECT() *MockTest1ComponentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTest1ComponentMockRecorder ¶
type MockTest1ComponentMockRecorder struct {
// contains filtered or unexported fields
}
MockTest1ComponentMockRecorder is the mock recorder for MockTest1Component.
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 ¶
func (m *MockTest2Component) EXPECT() *MockTest2ComponentMockRecorder
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 ¶
func (m *MockctxInterface) EXPECT() *MockctxInterfaceMockRecorder
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.
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 ¶
func (m *MockpanicCaseInterface) EXPECT() *MockpanicCaseInterfaceMockRecorder
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.
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 ¶
func (m *MockpanicNoRecvoeryCaseInterface) EXPECT() *MockpanicNoRecvoeryCaseInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockpanicNoRecvoeryCaseInterface) TestPanic ¶
func (m *MockpanicNoRecvoeryCaseInterface) TestPanic(ctx context.Context)
TestPanic mocks base method.
type MockpanicNoRecvoeryCaseInterfaceMockRecorder ¶
type MockpanicNoRecvoeryCaseInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockpanicNoRecvoeryCaseInterfaceMockRecorder is the mock recorder for MockpanicNoRecvoeryCaseInterface.
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 ¶
func (m *Mocktest1Controller) EXPECT() *Mocktest1ControllerMockRecorder
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 ¶
func (m *MocktestEchoController) EXPECT() *MocktestEchoControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktestEchoControllerMockRecorder ¶
type MocktestEchoControllerMockRecorder struct {
// contains filtered or unexported fields
}
MocktestEchoControllerMockRecorder is the mock recorder for MocktestEchoController.
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 ¶
func (m *MocktestGinController) EXPECT() *MocktestGinControllerMockRecorder
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.
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 ¶
func (m *MocktestRepository) EXPECT() *MocktestRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktestRepositoryMockRecorder ¶
type MocktestRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MocktestRepositoryMockRecorder is the mock recorder for MocktestRepository.
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 ¶
func (m *MocktestService) EXPECT() *MocktestServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktestServiceMockRecorder ¶
type MocktestServiceMockRecorder struct {
// contains filtered or unexported fields
}
MocktestServiceMockRecorder is the mock recorder for MocktestService.
type ProtoValidateComponent ¶
type ProtoValidateComponent interface {
Validate(ctx context.Context, req *examplev1.Person) error
}
protoValidateComponent is a component that implements ProtoValidateComponent.
type Test1Component ¶
test1Component is a component that implements Test1Component.
type Test2Component ¶
test2Component is a component that implements Test2Component.