app

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package app is a generated GoMock package.

Index

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

func (m *MockApp) Config() *factory.Config

Config mocks base method.

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

func (m *MockApp) SetLogEnable(enable bool)

SetLogEnable mocks base method.

func (*MockApp) SetLogLevel

func (m *MockApp) SetLogLevel(level string)

SetLogLevel mocks base method.

func (*MockApp) SetReportCaller

func (m *MockApp) SetReportCaller(reportCaller bool)

SetReportCaller mocks base method.

func (*MockApp) Start

func (m *MockApp) Start()

Start mocks base method.

func (*MockApp) Terminate

func (m *MockApp) Terminate()

Terminate 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.

Jump to

Keyboard shortcuts

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