Documentation ¶
Overview ¶
Package case1 is a generated GoMock package.
Index ¶
- func Run(ctx context.Context, app *App) error
- type App
- type FooReq
- type FooRes
- type HTTPController
- type InterceptorRetry
- type LazyInitComponent
- type LazyInitImpl
- type MockHTTPController
- type MockHTTPControllerFooCall
- func (c *MockHTTPControllerFooCall) Do(f func(http.ResponseWriter, *http.Request)) *MockHTTPControllerFooCall
- func (c *MockHTTPControllerFooCall) DoAndReturn(f func(http.ResponseWriter, *http.Request)) *MockHTTPControllerFooCall
- func (c *MockHTTPControllerFooCall) Return() *MockHTTPControllerFooCall
- type MockHTTPControllerMockRecorder
- type MockInterceptorRetry
- type MockInterceptorRetryMockRecorder
- type MockInterceptorRetryTestErrorCall
- func (c *MockInterceptorRetryTestErrorCall) Do(f func(context.Context) error) *MockInterceptorRetryTestErrorCall
- func (c *MockInterceptorRetryTestErrorCall) DoAndReturn(f func(context.Context) error) *MockInterceptorRetryTestErrorCall
- func (c *MockInterceptorRetryTestErrorCall) Return(arg0 error) *MockInterceptorRetryTestErrorCall
- type MockInterceptorRetryTestNormalCall
- func (c *MockInterceptorRetryTestNormalCall) Do(f func(context.Context) error) *MockInterceptorRetryTestNormalCall
- func (c *MockInterceptorRetryTestNormalCall) DoAndReturn(f func(context.Context) error) *MockInterceptorRetryTestNormalCall
- func (c *MockInterceptorRetryTestNormalCall) Return(arg0 error) *MockInterceptorRetryTestNormalCall
- type MockLazyInitComponent
- type MockLazyInitComponentMockRecorder
- type MockLazyInitComponentTryCall
- func (c *MockLazyInitComponentTryCall) Do(f func(context.Context) error) *MockLazyInitComponentTryCall
- func (c *MockLazyInitComponentTryCall) DoAndReturn(f func(context.Context) error) *MockLazyInitComponentTryCall
- func (c *MockLazyInitComponentTryCall) Return(arg0 error) *MockLazyInitComponentTryCall
- type MockLazyInitImpl
- type MockLazyInitImplMockRecorder
- type MockLazyInitImplTryCall
- type MockTest1Component
- type MockTest1ComponentFooCall
- func (c *MockTest1ComponentFooCall) Do(f func(context.Context, *FooReq) (*FooRes, error)) *MockTest1ComponentFooCall
- func (c *MockTest1ComponentFooCall) DoAndReturn(f func(context.Context, *FooReq) (*FooRes, error)) *MockTest1ComponentFooCall
- func (c *MockTest1ComponentFooCall) Return(arg0 *FooRes, arg1 error) *MockTest1ComponentFooCall
- type MockTest1ComponentMockRecorder
- type MockTest2Component
- type MockTest2ComponentGetClientCall
- func (c *MockTest2ComponentGetClientCall) Do(f func() *http.Client) *MockTest2ComponentGetClientCall
- func (c *MockTest2ComponentGetClientCall) DoAndReturn(f func() *http.Client) *MockTest2ComponentGetClientCall
- func (c *MockTest2ComponentGetClientCall) Return(arg0 *http.Client) *MockTest2ComponentGetClientCall
- type MockTest2ComponentMockRecorder
- type MockctxInterface
- type MockctxInterfaceFooCall
- type MockctxInterfaceMockRecorder
- type MockpanicCaseInterface
- type MockpanicCaseInterfaceMockRecorder
- type MockpanicCaseInterfaceTestPanicCall
- func (c *MockpanicCaseInterfaceTestPanicCall) Do(f func(context.Context)) *MockpanicCaseInterfaceTestPanicCall
- func (c *MockpanicCaseInterfaceTestPanicCall) DoAndReturn(f func(context.Context)) *MockpanicCaseInterfaceTestPanicCall
- func (c *MockpanicCaseInterfaceTestPanicCall) Return() *MockpanicCaseInterfaceTestPanicCall
- type MockpanicNoRecvoeryCaseInterface
- type MockpanicNoRecvoeryCaseInterfaceMockRecorder
- type MockpanicNoRecvoeryCaseInterfaceTestPanicCall
- func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Do(f func(context.Context)) *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
- func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) DoAndReturn(f func(context.Context)) *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
- func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Return() *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
- type Mocktest1Controller
- type Mocktest1ControllerMockRecorder
- type MocktestEchoController
- type MocktestEchoControllerErrorCall
- func (c_2 *MocktestEchoControllerErrorCall) Do(f func(echo.Context) error) *MocktestEchoControllerErrorCall
- func (c_2 *MocktestEchoControllerErrorCall) DoAndReturn(f func(echo.Context) error) *MocktestEchoControllerErrorCall
- func (c_2 *MocktestEchoControllerErrorCall) Return(arg0 error) *MocktestEchoControllerErrorCall
- type MocktestEchoControllerHelloCall
- func (c_2 *MocktestEchoControllerHelloCall) Do(f func(echo.Context) error) *MocktestEchoControllerHelloCall
- func (c_2 *MocktestEchoControllerHelloCall) DoAndReturn(f func(echo.Context) error) *MocktestEchoControllerHelloCall
- func (c_2 *MocktestEchoControllerHelloCall) Return(arg0 error) *MocktestEchoControllerHelloCall
- type MocktestEchoControllerMockRecorder
- type MocktestGinController
- type MocktestGinControllerHelloCall
- type MocktestGinControllerMockRecorder
- type MocktestRepository
- type MocktestRepositoryFooCall
- type MocktestRepositoryMockRecorder
- type MocktestService
- type MocktestServiceFooCall
- type MocktestServiceMockRecorder
- type Test1Component
- type Test2Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPController ¶
type HTTPController interface { // Foo is implemented by [httpControllerImpl.Foo] // // Foo is a http handler Foo(w http.ResponseWriter, r *http.Request) }
HTTPController is implemented by [httpControllerImpl], which can be mocked with NewMockHTTPController.
type InterceptorRetry ¶
type InterceptorRetry interface { // TestError is implemented by [interceptorRetry.TestError] TestError(ctx context.Context) error // TestNormal is implemented by [interceptorRetry.TestNormal] TestNormal(ctx context.Context) error }
InterceptorRetry is implemented by [interceptorRetry], which can be mocked with NewMockInterceptorRetry.
type LazyInitComponent ¶
type LazyInitComponent interface { // Try is implemented by [lazyInitComponent.Try] Try(ctx context.Context) error }
LazyInitComponent is implemented by [lazyInitComponent], which can be mocked with NewMockLazyInitComponent.
type LazyInitImpl ¶
type LazyInitImpl interface { // Try is implemented by [lazyInitImpl.Try] Try(ctx context.Context) }
LazyInitImpl is implemented by [lazyInitImpl], which can be mocked with NewMockLazyInitImpl.
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 MockHTTPControllerFooCall ¶
MockHTTPControllerFooCall wrap *gomock.Call
func (*MockHTTPControllerFooCall) Do ¶
func (c *MockHTTPControllerFooCall) Do(f func(http.ResponseWriter, *http.Request)) *MockHTTPControllerFooCall
Do rewrite *gomock.Call.Do
func (*MockHTTPControllerFooCall) DoAndReturn ¶
func (c *MockHTTPControllerFooCall) DoAndReturn(f func(http.ResponseWriter, *http.Request)) *MockHTTPControllerFooCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHTTPControllerFooCall) Return ¶
func (c *MockHTTPControllerFooCall) Return() *MockHTTPControllerFooCall
Return rewrite *gomock.Call.Return
type MockHTTPControllerMockRecorder ¶
type MockHTTPControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPControllerMockRecorder is the mock recorder for MockHTTPController.
func (*MockHTTPControllerMockRecorder) Foo ¶
func (mr *MockHTTPControllerMockRecorder) Foo(w, r any) *MockHTTPControllerFooCall
Foo indicates an expected call of Foo.
type MockInterceptorRetry ¶
type MockInterceptorRetry struct {
// contains filtered or unexported fields
}
MockInterceptorRetry is a mock of InterceptorRetry interface.
func NewMockInterceptorRetry ¶
func NewMockInterceptorRetry(ctrl *gomock.Controller) *MockInterceptorRetry
NewMockInterceptorRetry creates a new mock instance.
func (*MockInterceptorRetry) EXPECT ¶
func (m *MockInterceptorRetry) EXPECT() *MockInterceptorRetryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterceptorRetry) TestError ¶
func (m *MockInterceptorRetry) TestError(ctx context.Context) error
TestError mocks base method.
func (*MockInterceptorRetry) TestNormal ¶
func (m *MockInterceptorRetry) TestNormal(ctx context.Context) error
TestNormal mocks base method.
type MockInterceptorRetryMockRecorder ¶
type MockInterceptorRetryMockRecorder struct {
// contains filtered or unexported fields
}
MockInterceptorRetryMockRecorder is the mock recorder for MockInterceptorRetry.
func (*MockInterceptorRetryMockRecorder) TestError ¶
func (mr *MockInterceptorRetryMockRecorder) TestError(ctx any) *MockInterceptorRetryTestErrorCall
TestError indicates an expected call of TestError.
func (*MockInterceptorRetryMockRecorder) TestNormal ¶
func (mr *MockInterceptorRetryMockRecorder) TestNormal(ctx any) *MockInterceptorRetryTestNormalCall
TestNormal indicates an expected call of TestNormal.
type MockInterceptorRetryTestErrorCall ¶
MockInterceptorRetryTestErrorCall wrap *gomock.Call
func (*MockInterceptorRetryTestErrorCall) Do ¶
func (c *MockInterceptorRetryTestErrorCall) Do(f func(context.Context) error) *MockInterceptorRetryTestErrorCall
Do rewrite *gomock.Call.Do
func (*MockInterceptorRetryTestErrorCall) DoAndReturn ¶
func (c *MockInterceptorRetryTestErrorCall) DoAndReturn(f func(context.Context) error) *MockInterceptorRetryTestErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterceptorRetryTestErrorCall) Return ¶
func (c *MockInterceptorRetryTestErrorCall) Return(arg0 error) *MockInterceptorRetryTestErrorCall
Return rewrite *gomock.Call.Return
type MockInterceptorRetryTestNormalCall ¶
MockInterceptorRetryTestNormalCall wrap *gomock.Call
func (*MockInterceptorRetryTestNormalCall) Do ¶
func (c *MockInterceptorRetryTestNormalCall) Do(f func(context.Context) error) *MockInterceptorRetryTestNormalCall
Do rewrite *gomock.Call.Do
func (*MockInterceptorRetryTestNormalCall) DoAndReturn ¶
func (c *MockInterceptorRetryTestNormalCall) DoAndReturn(f func(context.Context) error) *MockInterceptorRetryTestNormalCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterceptorRetryTestNormalCall) Return ¶
func (c *MockInterceptorRetryTestNormalCall) Return(arg0 error) *MockInterceptorRetryTestNormalCall
Return rewrite *gomock.Call.Return
type MockLazyInitComponent ¶
type MockLazyInitComponent struct {
// contains filtered or unexported fields
}
MockLazyInitComponent is a mock of LazyInitComponent interface.
func NewMockLazyInitComponent ¶
func NewMockLazyInitComponent(ctrl *gomock.Controller) *MockLazyInitComponent
NewMockLazyInitComponent creates a new mock instance.
func (*MockLazyInitComponent) EXPECT ¶
func (m *MockLazyInitComponent) EXPECT() *MockLazyInitComponentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLazyInitComponentMockRecorder ¶
type MockLazyInitComponentMockRecorder struct {
// contains filtered or unexported fields
}
MockLazyInitComponentMockRecorder is the mock recorder for MockLazyInitComponent.
func (*MockLazyInitComponentMockRecorder) Try ¶
func (mr *MockLazyInitComponentMockRecorder) Try(ctx any) *MockLazyInitComponentTryCall
Try indicates an expected call of Try.
type MockLazyInitComponentTryCall ¶
MockLazyInitComponentTryCall wrap *gomock.Call
func (*MockLazyInitComponentTryCall) Do ¶
func (c *MockLazyInitComponentTryCall) Do(f func(context.Context) error) *MockLazyInitComponentTryCall
Do rewrite *gomock.Call.Do
func (*MockLazyInitComponentTryCall) DoAndReturn ¶
func (c *MockLazyInitComponentTryCall) DoAndReturn(f func(context.Context) error) *MockLazyInitComponentTryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLazyInitComponentTryCall) Return ¶
func (c *MockLazyInitComponentTryCall) Return(arg0 error) *MockLazyInitComponentTryCall
Return rewrite *gomock.Call.Return
type MockLazyInitImpl ¶
type MockLazyInitImpl struct {
// contains filtered or unexported fields
}
MockLazyInitImpl is a mock of LazyInitImpl interface.
func NewMockLazyInitImpl ¶
func NewMockLazyInitImpl(ctrl *gomock.Controller) *MockLazyInitImpl
NewMockLazyInitImpl creates a new mock instance.
func (*MockLazyInitImpl) EXPECT ¶
func (m *MockLazyInitImpl) EXPECT() *MockLazyInitImplMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLazyInitImpl) Try ¶
func (m *MockLazyInitImpl) Try(ctx context.Context)
Try mocks base method.
type MockLazyInitImplMockRecorder ¶
type MockLazyInitImplMockRecorder struct {
// contains filtered or unexported fields
}
MockLazyInitImplMockRecorder is the mock recorder for MockLazyInitImpl.
func (*MockLazyInitImplMockRecorder) Try ¶
func (mr *MockLazyInitImplMockRecorder) Try(ctx any) *MockLazyInitImplTryCall
Try indicates an expected call of Try.
type MockLazyInitImplTryCall ¶
MockLazyInitImplTryCall wrap *gomock.Call
func (*MockLazyInitImplTryCall) Do ¶
func (c *MockLazyInitImplTryCall) Do(f func(context.Context)) *MockLazyInitImplTryCall
Do rewrite *gomock.Call.Do
func (*MockLazyInitImplTryCall) DoAndReturn ¶
func (c *MockLazyInitImplTryCall) DoAndReturn(f func(context.Context)) *MockLazyInitImplTryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLazyInitImplTryCall) Return ¶
func (c *MockLazyInitImplTryCall) Return() *MockLazyInitImplTryCall
Return rewrite *gomock.Call.Return
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 MockTest1ComponentFooCall ¶
MockTest1ComponentFooCall wrap *gomock.Call
func (*MockTest1ComponentFooCall) Do ¶
func (c *MockTest1ComponentFooCall) Do(f func(context.Context, *FooReq) (*FooRes, error)) *MockTest1ComponentFooCall
Do rewrite *gomock.Call.Do
func (*MockTest1ComponentFooCall) DoAndReturn ¶
func (c *MockTest1ComponentFooCall) DoAndReturn(f func(context.Context, *FooReq) (*FooRes, error)) *MockTest1ComponentFooCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTest1ComponentFooCall) Return ¶
func (c *MockTest1ComponentFooCall) Return(arg0 *FooRes, arg1 error) *MockTest1ComponentFooCall
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 ¶
func (mr *MockTest1ComponentMockRecorder) Foo(ctx, req any) *MockTest1ComponentFooCall
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 ¶
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 MockTest2ComponentGetClientCall ¶
MockTest2ComponentGetClientCall wrap *gomock.Call
func (*MockTest2ComponentGetClientCall) Do ¶
func (c *MockTest2ComponentGetClientCall) Do(f func() *http.Client) *MockTest2ComponentGetClientCall
Do rewrite *gomock.Call.Do
func (*MockTest2ComponentGetClientCall) DoAndReturn ¶
func (c *MockTest2ComponentGetClientCall) DoAndReturn(f func() *http.Client) *MockTest2ComponentGetClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTest2ComponentGetClientCall) Return ¶
func (c *MockTest2ComponentGetClientCall) Return(arg0 *http.Client) *MockTest2ComponentGetClientCall
Return rewrite *gomock.Call.Return
type MockTest2ComponentMockRecorder ¶
type MockTest2ComponentMockRecorder struct {
// contains filtered or unexported fields
}
MockTest2ComponentMockRecorder is the mock recorder for MockTest2Component.
func (*MockTest2ComponentMockRecorder) GetClient ¶
func (mr *MockTest2ComponentMockRecorder) GetClient() *MockTest2ComponentGetClientCall
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 MockctxInterfaceFooCall ¶
MockctxInterfaceFooCall wrap *gomock.Call
func (*MockctxInterfaceFooCall) Do ¶
func (c *MockctxInterfaceFooCall) Do(f func(context.Context)) *MockctxInterfaceFooCall
Do rewrite *gomock.Call.Do
func (*MockctxInterfaceFooCall) DoAndReturn ¶
func (c *MockctxInterfaceFooCall) DoAndReturn(f func(context.Context)) *MockctxInterfaceFooCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockctxInterfaceFooCall) Return ¶
func (c *MockctxInterfaceFooCall) Return() *MockctxInterfaceFooCall
Return rewrite *gomock.Call.Return
type MockctxInterfaceMockRecorder ¶
type MockctxInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockctxInterfaceMockRecorder is the mock recorder for MockctxInterface.
func (*MockctxInterfaceMockRecorder) Foo ¶
func (mr *MockctxInterfaceMockRecorder) Foo(ctx any) *MockctxInterfaceFooCall
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 ¶
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.
func (*MockpanicCaseInterfaceMockRecorder) TestPanic ¶
func (mr *MockpanicCaseInterfaceMockRecorder) TestPanic(ctx any) *MockpanicCaseInterfaceTestPanicCall
TestPanic indicates an expected call of TestPanic.
type MockpanicCaseInterfaceTestPanicCall ¶
MockpanicCaseInterfaceTestPanicCall wrap *gomock.Call
func (*MockpanicCaseInterfaceTestPanicCall) Do ¶
func (c *MockpanicCaseInterfaceTestPanicCall) Do(f func(context.Context)) *MockpanicCaseInterfaceTestPanicCall
Do rewrite *gomock.Call.Do
func (*MockpanicCaseInterfaceTestPanicCall) DoAndReturn ¶
func (c *MockpanicCaseInterfaceTestPanicCall) DoAndReturn(f func(context.Context)) *MockpanicCaseInterfaceTestPanicCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpanicCaseInterfaceTestPanicCall) Return ¶
func (c *MockpanicCaseInterfaceTestPanicCall) Return() *MockpanicCaseInterfaceTestPanicCall
Return rewrite *gomock.Call.Return
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.
func (*MockpanicNoRecvoeryCaseInterfaceMockRecorder) TestPanic ¶
func (mr *MockpanicNoRecvoeryCaseInterfaceMockRecorder) TestPanic(ctx any) *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
TestPanic indicates an expected call of TestPanic.
type MockpanicNoRecvoeryCaseInterfaceTestPanicCall ¶
MockpanicNoRecvoeryCaseInterfaceTestPanicCall wrap *gomock.Call
func (*MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Do ¶
func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Do(f func(context.Context)) *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
Do rewrite *gomock.Call.Do
func (*MockpanicNoRecvoeryCaseInterfaceTestPanicCall) DoAndReturn ¶
func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) DoAndReturn(f func(context.Context)) *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Return ¶
func (c *MockpanicNoRecvoeryCaseInterfaceTestPanicCall) Return() *MockpanicNoRecvoeryCaseInterfaceTestPanicCall
Return rewrite *gomock.Call.Return
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 MocktestEchoControllerErrorCall ¶
MocktestEchoControllerErrorCall wrap *gomock.Call
func (*MocktestEchoControllerErrorCall) Do ¶
func (c_2 *MocktestEchoControllerErrorCall) Do(f func(echo.Context) error) *MocktestEchoControllerErrorCall
Do rewrite *gomock.Call.Do
func (*MocktestEchoControllerErrorCall) DoAndReturn ¶
func (c_2 *MocktestEchoControllerErrorCall) DoAndReturn(f func(echo.Context) error) *MocktestEchoControllerErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktestEchoControllerErrorCall) Return ¶
func (c_2 *MocktestEchoControllerErrorCall) Return(arg0 error) *MocktestEchoControllerErrorCall
Return rewrite *gomock.Call.Return
type MocktestEchoControllerHelloCall ¶
MocktestEchoControllerHelloCall wrap *gomock.Call
func (*MocktestEchoControllerHelloCall) Do ¶
func (c_2 *MocktestEchoControllerHelloCall) Do(f func(echo.Context) error) *MocktestEchoControllerHelloCall
Do rewrite *gomock.Call.Do
func (*MocktestEchoControllerHelloCall) DoAndReturn ¶
func (c_2 *MocktestEchoControllerHelloCall) DoAndReturn(f func(echo.Context) error) *MocktestEchoControllerHelloCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktestEchoControllerHelloCall) Return ¶
func (c_2 *MocktestEchoControllerHelloCall) Return(arg0 error) *MocktestEchoControllerHelloCall
Return rewrite *gomock.Call.Return
type MocktestEchoControllerMockRecorder ¶
type MocktestEchoControllerMockRecorder struct {
// contains filtered or unexported fields
}
MocktestEchoControllerMockRecorder is the mock recorder for MocktestEchoController.
func (*MocktestEchoControllerMockRecorder) Error ¶
func (mr *MocktestEchoControllerMockRecorder) Error(c any) *MocktestEchoControllerErrorCall
Error indicates an expected call of Error.
func (*MocktestEchoControllerMockRecorder) Hello ¶
func (mr *MocktestEchoControllerMockRecorder) Hello(c any) *MocktestEchoControllerHelloCall
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 ¶
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 MocktestGinControllerHelloCall ¶
MocktestGinControllerHelloCall wrap *gomock.Call
func (*MocktestGinControllerHelloCall) Do ¶
func (c_2 *MocktestGinControllerHelloCall) Do(f func(*gin.Context)) *MocktestGinControllerHelloCall
Do rewrite *gomock.Call.Do
func (*MocktestGinControllerHelloCall) DoAndReturn ¶
func (c_2 *MocktestGinControllerHelloCall) DoAndReturn(f func(*gin.Context)) *MocktestGinControllerHelloCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktestGinControllerHelloCall) Return ¶
func (c_2 *MocktestGinControllerHelloCall) Return() *MocktestGinControllerHelloCall
Return rewrite *gomock.Call.Return
type MocktestGinControllerMockRecorder ¶
type MocktestGinControllerMockRecorder struct {
// contains filtered or unexported fields
}
MocktestGinControllerMockRecorder is the mock recorder for MocktestGinController.
func (*MocktestGinControllerMockRecorder) Hello ¶
func (mr *MocktestGinControllerMockRecorder) Hello(c any) *MocktestGinControllerHelloCall
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 ¶
func (m *MocktestRepository) EXPECT() *MocktestRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktestRepositoryFooCall ¶
MocktestRepositoryFooCall wrap *gomock.Call
func (*MocktestRepositoryFooCall) Do ¶
func (c *MocktestRepositoryFooCall) Do(f func(context.Context) error) *MocktestRepositoryFooCall
Do rewrite *gomock.Call.Do
func (*MocktestRepositoryFooCall) DoAndReturn ¶
func (c *MocktestRepositoryFooCall) DoAndReturn(f func(context.Context) error) *MocktestRepositoryFooCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktestRepositoryFooCall) Return ¶
func (c *MocktestRepositoryFooCall) Return(arg0 error) *MocktestRepositoryFooCall
Return rewrite *gomock.Call.Return
type MocktestRepositoryMockRecorder ¶
type MocktestRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MocktestRepositoryMockRecorder is the mock recorder for MocktestRepository.
func (*MocktestRepositoryMockRecorder) Foo ¶
func (mr *MocktestRepositoryMockRecorder) Foo(ctx any) *MocktestRepositoryFooCall
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 ¶
func (m *MocktestService) EXPECT() *MocktestServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocktestServiceFooCall ¶
MocktestServiceFooCall wrap *gomock.Call
func (*MocktestServiceFooCall) Do ¶
func (c *MocktestServiceFooCall) Do(f func(context.Context) error) *MocktestServiceFooCall
Do rewrite *gomock.Call.Do
func (*MocktestServiceFooCall) DoAndReturn ¶
func (c *MocktestServiceFooCall) DoAndReturn(f func(context.Context) error) *MocktestServiceFooCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktestServiceFooCall) Return ¶
func (c *MocktestServiceFooCall) Return(arg0 error) *MocktestServiceFooCall
Return rewrite *gomock.Call.Return
type MocktestServiceMockRecorder ¶
type MocktestServiceMockRecorder struct {
// contains filtered or unexported fields
}
MocktestServiceMockRecorder is the mock recorder for MocktestService.
func (*MocktestServiceMockRecorder) Foo ¶
func (mr *MocktestServiceMockRecorder) Foo(ctx any) *MocktestServiceFooCall
Foo indicates an expected call of Foo.
type Test1Component ¶
type Test1Component interface { // Foo is implemented by [test1Component.Foo] Foo(ctx context.Context, req *FooReq) (*FooRes, error) }
Test1Component is implemented by [test1Component], which can be mocked with NewMockTest1Component.
type Test2Component ¶
type Test2Component interface { // GetClient is implemented by [test2Component.GetClient] GetClient() *http.Client }
Test2Component is implemented by [test2Component], which can be mocked with NewMockTest2Component.