Documentation ¶
Overview ¶
Package app is a generated GoMock package.
Index ¶
- type App
- type MockApp
- func (m *MockApp) Config() *factory.Config
- func (m *MockApp) Context() *context.SMFContext
- func (m *MockApp) EXPECT() *MockAppMockRecorder
- func (m *MockApp) SetLogEnable(enable bool)
- func (m *MockApp) SetLogLevel(level string)
- func (m *MockApp) SetReportCaller(reportCaller bool)
- func (m *MockApp) Start()
- func (m *MockApp) Terminate()
- type MockAppMockRecorder
- func (mr *MockAppMockRecorder) Config() *gomock.Call
- func (mr *MockAppMockRecorder) Context() *gomock.Call
- func (mr *MockAppMockRecorder) SetLogEnable(enable any) *gomock.Call
- func (mr *MockAppMockRecorder) SetLogLevel(level any) *gomock.Call
- func (mr *MockAppMockRecorder) SetReportCaller(reportCaller any) *gomock.Call
- func (mr *MockAppMockRecorder) Start() *gomock.Call
- func (mr *MockAppMockRecorder) Terminate() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { SetLogEnable(enable bool) SetLogLevel(level string) SetReportCaller(reportCaller bool) Start() Terminate() Context() *smf_context.SMFContext Config() *factory.Config }
type MockApp ¶
type MockApp struct {
// contains filtered or unexported fields
}
MockApp is a mock of App interface.
func NewMockApp ¶
func NewMockApp(ctrl *gomock.Controller) *MockApp
NewMockApp creates a new mock instance.
func (*MockApp) Context ¶
func (m *MockApp) Context() *context.SMFContext
Context mocks base method.
func (*MockApp) EXPECT ¶
func (m *MockApp) EXPECT() *MockAppMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApp) SetLogEnable ¶
SetLogEnable mocks base method.
func (*MockApp) SetLogLevel ¶
SetLogLevel mocks base method.
func (*MockApp) SetReportCaller ¶
SetReportCaller mocks base method.
type MockAppMockRecorder ¶
type MockAppMockRecorder struct {
// contains filtered or unexported fields
}
MockAppMockRecorder is the mock recorder for MockApp.
func (*MockAppMockRecorder) Config ¶
func (mr *MockAppMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockAppMockRecorder) Context ¶
func (mr *MockAppMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockAppMockRecorder) SetLogEnable ¶
func (mr *MockAppMockRecorder) SetLogEnable(enable any) *gomock.Call
SetLogEnable indicates an expected call of SetLogEnable.
func (*MockAppMockRecorder) SetLogLevel ¶
func (mr *MockAppMockRecorder) SetLogLevel(level any) *gomock.Call
SetLogLevel indicates an expected call of SetLogLevel.
func (*MockAppMockRecorder) SetReportCaller ¶
func (mr *MockAppMockRecorder) SetReportCaller(reportCaller any) *gomock.Call
SetReportCaller indicates an expected call of SetReportCaller.
func (*MockAppMockRecorder) Start ¶
func (mr *MockAppMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockAppMockRecorder) Terminate ¶
func (mr *MockAppMockRecorder) Terminate() *gomock.Call
Terminate indicates an expected call of Terminate.