mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigurationReader

type MockConfigurationReader struct {
	mock.Mock
}

MockConfigurationReader is an autogenerated mock type for the ConfigurationReader type

func NewMockConfigurationReader

func NewMockConfigurationReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigurationReader

NewMockConfigurationReader creates a new instance of MockConfigurationReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockConfigurationReader) EXPECT

func (*MockConfigurationReader) GetConfigFileUsed

func (_m *MockConfigurationReader) GetConfigFileUsed() string

GetConfigFileUsed provides a mock function with given fields:

type MockConfigurationReader_Expecter

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

func (*MockConfigurationReader_Expecter) GetConfigFileUsed

GetConfigFileUsed is a helper method to define mock.On call

type MockConfigurationReader_GetConfigFileUsed_Call

type MockConfigurationReader_GetConfigFileUsed_Call struct {
	*mock.Call
}

MockConfigurationReader_GetConfigFileUsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigFileUsed'

func (*MockConfigurationReader_GetConfigFileUsed_Call) Return

func (*MockConfigurationReader_GetConfigFileUsed_Call) Run

func (*MockConfigurationReader_GetConfigFileUsed_Call) RunAndReturn

type MockDownloadConfiguration

type MockDownloadConfiguration struct {
	mock.Mock
}

MockDownloadConfiguration is an autogenerated mock type for the DownloadConfiguration type

func NewMockDownloadConfiguration

func NewMockDownloadConfiguration(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDownloadConfiguration

NewMockDownloadConfiguration creates a new instance of MockDownloadConfiguration. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDownloadConfiguration) EXPECT

func (*MockDownloadConfiguration) GetBaseDir

func (_m *MockDownloadConfiguration) GetBaseDir() string

GetBaseDir provides a mock function with given fields:

func (*MockDownloadConfiguration) GetCacheDir

func (_m *MockDownloadConfiguration) GetCacheDir() string

GetCacheDir provides a mock function with given fields:

func (*MockDownloadConfiguration) GetConfigDir

func (_m *MockDownloadConfiguration) GetConfigDir() string

GetConfigDir provides a mock function with given fields:

func (*MockDownloadConfiguration) GetFs

func (_m *MockDownloadConfiguration) GetFs() afero.Fs

GetFs provides a mock function with given fields:

func (*MockDownloadConfiguration) GetInputFilename

func (_m *MockDownloadConfiguration) GetInputFilename() string

GetInputFilename provides a mock function with given fields:

func (*MockDownloadConfiguration) GetLanguage

func (_m *MockDownloadConfiguration) GetLanguage() string

GetLanguage provides a mock function with given fields:

func (*MockDownloadConfiguration) GetLogger

func (_m *MockDownloadConfiguration) GetLogger() *slog.Logger

GetLogger provides a mock function with given fields:

func (*MockDownloadConfiguration) GetToken

func (_m *MockDownloadConfiguration) GetToken() string

GetToken provides a mock function with given fields:

type MockDownloadConfiguration_Expecter

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

func (*MockDownloadConfiguration_Expecter) GetBaseDir

GetBaseDir is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetCacheDir

GetCacheDir is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetConfigDir

GetConfigDir is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetFs

GetFs is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetInputFilename

GetInputFilename is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetLanguage

GetLanguage is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*MockDownloadConfiguration_Expecter) GetToken

GetToken is a helper method to define mock.On call

type MockDownloadConfiguration_GetBaseDir_Call

type MockDownloadConfiguration_GetBaseDir_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetBaseDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBaseDir'

func (*MockDownloadConfiguration_GetBaseDir_Call) Return

func (*MockDownloadConfiguration_GetBaseDir_Call) Run

func (*MockDownloadConfiguration_GetBaseDir_Call) RunAndReturn

type MockDownloadConfiguration_GetCacheDir_Call

type MockDownloadConfiguration_GetCacheDir_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetCacheDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCacheDir'

func (*MockDownloadConfiguration_GetCacheDir_Call) Return

func (*MockDownloadConfiguration_GetCacheDir_Call) Run

func (*MockDownloadConfiguration_GetCacheDir_Call) RunAndReturn

type MockDownloadConfiguration_GetConfigDir_Call

type MockDownloadConfiguration_GetConfigDir_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetConfigDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigDir'

func (*MockDownloadConfiguration_GetConfigDir_Call) Return

func (*MockDownloadConfiguration_GetConfigDir_Call) Run

func (*MockDownloadConfiguration_GetConfigDir_Call) RunAndReturn

type MockDownloadConfiguration_GetFs_Call

type MockDownloadConfiguration_GetFs_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetFs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFs'

func (*MockDownloadConfiguration_GetFs_Call) Return

func (*MockDownloadConfiguration_GetFs_Call) Run

func (*MockDownloadConfiguration_GetFs_Call) RunAndReturn

type MockDownloadConfiguration_GetInputFilename_Call

type MockDownloadConfiguration_GetInputFilename_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetInputFilename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInputFilename'

func (*MockDownloadConfiguration_GetInputFilename_Call) Return

func (*MockDownloadConfiguration_GetInputFilename_Call) Run

func (*MockDownloadConfiguration_GetInputFilename_Call) RunAndReturn

type MockDownloadConfiguration_GetLanguage_Call

type MockDownloadConfiguration_GetLanguage_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetLanguage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLanguage'

func (*MockDownloadConfiguration_GetLanguage_Call) Return

func (*MockDownloadConfiguration_GetLanguage_Call) Run

func (*MockDownloadConfiguration_GetLanguage_Call) RunAndReturn

type MockDownloadConfiguration_GetLogger_Call

type MockDownloadConfiguration_GetLogger_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'

func (*MockDownloadConfiguration_GetLogger_Call) Return

func (*MockDownloadConfiguration_GetLogger_Call) Run

func (*MockDownloadConfiguration_GetLogger_Call) RunAndReturn

type MockDownloadConfiguration_GetToken_Call

type MockDownloadConfiguration_GetToken_Call struct {
	*mock.Call
}

MockDownloadConfiguration_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'

func (*MockDownloadConfiguration_GetToken_Call) Return

func (*MockDownloadConfiguration_GetToken_Call) Run

func (*MockDownloadConfiguration_GetToken_Call) RunAndReturn

type MockExerciseConfiguration

type MockExerciseConfiguration struct {
	mock.Mock
}

MockExerciseConfiguration is an autogenerated mock type for the ExerciseConfiguration type

func NewMockExerciseConfiguration

func NewMockExerciseConfiguration(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExerciseConfiguration

NewMockExerciseConfiguration creates a new instance of MockExerciseConfiguration. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockExerciseConfiguration) EXPECT

func (*MockExerciseConfiguration) GetBaseDir

func (_m *MockExerciseConfiguration) GetBaseDir() string

GetBaseDir provides a mock function with given fields:

func (*MockExerciseConfiguration) GetFs

func (_m *MockExerciseConfiguration) GetFs() afero.Fs

GetFs provides a mock function with given fields:

func (*MockExerciseConfiguration) GetLanguage

func (_m *MockExerciseConfiguration) GetLanguage() string

GetLanguage provides a mock function with given fields:

func (*MockExerciseConfiguration) GetLogger

func (_m *MockExerciseConfiguration) GetLogger() *slog.Logger

GetLogger provides a mock function with given fields:

type MockExerciseConfiguration_Expecter

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

func (*MockExerciseConfiguration_Expecter) GetBaseDir

GetBaseDir is a helper method to define mock.On call

func (*MockExerciseConfiguration_Expecter) GetFs

GetFs is a helper method to define mock.On call

func (*MockExerciseConfiguration_Expecter) GetLanguage

GetLanguage is a helper method to define mock.On call

func (*MockExerciseConfiguration_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

type MockExerciseConfiguration_GetBaseDir_Call

type MockExerciseConfiguration_GetBaseDir_Call struct {
	*mock.Call
}

MockExerciseConfiguration_GetBaseDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBaseDir'

func (*MockExerciseConfiguration_GetBaseDir_Call) Return

func (*MockExerciseConfiguration_GetBaseDir_Call) Run

func (*MockExerciseConfiguration_GetBaseDir_Call) RunAndReturn

type MockExerciseConfiguration_GetFs_Call

type MockExerciseConfiguration_GetFs_Call struct {
	*mock.Call
}

MockExerciseConfiguration_GetFs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFs'

func (*MockExerciseConfiguration_GetFs_Call) Return

func (*MockExerciseConfiguration_GetFs_Call) Run

func (*MockExerciseConfiguration_GetFs_Call) RunAndReturn

type MockExerciseConfiguration_GetLanguage_Call

type MockExerciseConfiguration_GetLanguage_Call struct {
	*mock.Call
}

MockExerciseConfiguration_GetLanguage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLanguage'

func (*MockExerciseConfiguration_GetLanguage_Call) Return

func (*MockExerciseConfiguration_GetLanguage_Call) Run

func (*MockExerciseConfiguration_GetLanguage_Call) RunAndReturn

type MockExerciseConfiguration_GetLogger_Call

type MockExerciseConfiguration_GetLogger_Call struct {
	*mock.Call
}

MockExerciseConfiguration_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'

func (*MockExerciseConfiguration_GetLogger_Call) Return

func (*MockExerciseConfiguration_GetLogger_Call) Run

func (*MockExerciseConfiguration_GetLogger_Call) RunAndReturn

Jump to

Keyboard shortcuts

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