mock

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplicationContext

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

MockApplicationContext is a mock of ApplicationContext interface.

func NewMockApplicationContext

func NewMockApplicationContext(ctrl *gomock.Controller) *MockApplicationContext

NewMockApplicationContext creates a new mock instance.

func (*MockApplicationContext) AttachGlobalFolders

func (m *MockApplicationContext) AttachGlobalFolders(dirs util.Dirs) context0.ApplicationContext

AttachGlobalFolders mocks base method.

func (*MockApplicationContext) Config

func (m *MockApplicationContext) Config() config.Config

Config mocks base method.

func (*MockApplicationContext) EXPECT

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

func (*MockApplicationContext) GetContext

func (m *MockApplicationContext) GetContext() context.Context

GetContext mocks base method.

func (*MockApplicationContext) GetDate

func (m *MockApplicationContext) GetDate() time.Time

GetDate mocks base method.

func (*MockApplicationContext) GetRunId

func (m *MockApplicationContext) GetRunId() string

GetRunId mocks base method.

func (*MockApplicationContext) GetRuntime

func (m *MockApplicationContext) GetRuntime() context0.Runtime

GetRuntime mocks base method.

func (*MockApplicationContext) GetTemplateFs

func (m *MockApplicationContext) GetTemplateFs() embed.FS

GetTemplateFs mocks base method.

func (*MockApplicationContext) Logger

func (m *MockApplicationContext) Logger() log.Logger

Logger mocks base method.

func (*MockApplicationContext) RootFolder

func (m *MockApplicationContext) RootFolder() util.Dirs

RootFolder mocks base method.

func (*MockApplicationContext) SetContextWithValue

func (m *MockApplicationContext) SetContextWithValue(ctx context.Context, key, value any)

SetContextWithValue mocks base method.

func (*MockApplicationContext) Version

func (m *MockApplicationContext) Version() string

Version mocks base method.

func (*MockApplicationContext) WithConfig

WithConfig mocks base method.

func (*MockApplicationContext) WithLogger

WithLogger mocks base method.

func (*MockApplicationContext) WithTemplateFs

WithTemplateFs mocks base method.

func (*MockApplicationContext) WithVersion

func (m *MockApplicationContext) WithVersion(version string) context0.ApplicationContext

WithVersion mocks base method.

type MockApplicationContextMockRecorder

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

MockApplicationContextMockRecorder is the mock recorder for MockApplicationContext.

func (*MockApplicationContextMockRecorder) AttachGlobalFolders

func (mr *MockApplicationContextMockRecorder) AttachGlobalFolders(dirs interface{}) *gomock.Call

AttachGlobalFolders indicates an expected call of AttachGlobalFolders.

func (*MockApplicationContextMockRecorder) Config

Config indicates an expected call of Config.

func (*MockApplicationContextMockRecorder) GetContext

GetContext indicates an expected call of GetContext.

func (*MockApplicationContextMockRecorder) GetDate

GetDate indicates an expected call of GetDate.

func (*MockApplicationContextMockRecorder) GetRunId

GetRunId indicates an expected call of GetRunId.

func (*MockApplicationContextMockRecorder) GetRuntime

GetRuntime indicates an expected call of GetRuntime.

func (*MockApplicationContextMockRecorder) GetTemplateFs

func (mr *MockApplicationContextMockRecorder) GetTemplateFs() *gomock.Call

GetTemplateFs indicates an expected call of GetTemplateFs.

func (*MockApplicationContextMockRecorder) Logger

Logger indicates an expected call of Logger.

func (*MockApplicationContextMockRecorder) RootFolder

RootFolder indicates an expected call of RootFolder.

func (*MockApplicationContextMockRecorder) SetContextWithValue

func (mr *MockApplicationContextMockRecorder) SetContextWithValue(ctx, key, value interface{}) *gomock.Call

SetContextWithValue indicates an expected call of SetContextWithValue.

func (*MockApplicationContextMockRecorder) Version

Version indicates an expected call of Version.

func (*MockApplicationContextMockRecorder) WithConfig

func (mr *MockApplicationContextMockRecorder) WithConfig(conf interface{}) *gomock.Call

WithConfig indicates an expected call of WithConfig.

func (*MockApplicationContextMockRecorder) WithLogger

func (mr *MockApplicationContextMockRecorder) WithLogger(logger interface{}) *gomock.Call

WithLogger indicates an expected call of WithLogger.

func (*MockApplicationContextMockRecorder) WithTemplateFs

func (mr *MockApplicationContextMockRecorder) WithTemplateFs(fs interface{}) *gomock.Call

WithTemplateFs indicates an expected call of WithTemplateFs.

func (*MockApplicationContextMockRecorder) WithVersion

func (mr *MockApplicationContextMockRecorder) WithVersion(version interface{}) *gomock.Call

WithVersion indicates an expected call of WithVersion.

Jump to

Keyboard shortcuts

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