mocks

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataUsageFileCreator

type DataUsageFileCreator struct {
	mock.Mock
}

DataUsageFileCreator is an autogenerated mock type for the DataUsageFileCreator type

func NewDataUsageFileCreator

func NewDataUsageFileCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *DataUsageFileCreator

NewDataUsageFileCreator creates a new instance of DataUsageFileCreator. 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 (*DataUsageFileCreator) AddStatements

func (_m *DataUsageFileCreator) AddStatements(statements []data_usage.Statement) error

AddStatements provides a mock function with given fields: statements

func (*DataUsageFileCreator) Close

func (_m *DataUsageFileCreator) Close()

Close provides a mock function with given fields:

func (*DataUsageFileCreator) EXPECT

func (*DataUsageFileCreator) GetImportFileSize added in v0.39.11

func (_m *DataUsageFileCreator) GetImportFileSize() uint64

GetImportFileSize provides a mock function with given fields:

func (*DataUsageFileCreator) GetStatementCount

func (_m *DataUsageFileCreator) GetStatementCount() int

GetStatementCount provides a mock function with given fields:

type DataUsageFileCreator_AddStatements_Call

type DataUsageFileCreator_AddStatements_Call struct {
	*mock.Call
}

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

func (*DataUsageFileCreator_AddStatements_Call) Return

func (*DataUsageFileCreator_AddStatements_Call) Run

func (*DataUsageFileCreator_AddStatements_Call) RunAndReturn added in v0.32.0

type DataUsageFileCreator_Close_Call

type DataUsageFileCreator_Close_Call struct {
	*mock.Call
}

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

func (*DataUsageFileCreator_Close_Call) Return

func (*DataUsageFileCreator_Close_Call) Run

func (*DataUsageFileCreator_Close_Call) RunAndReturn added in v0.32.0

type DataUsageFileCreator_Expecter

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

func (*DataUsageFileCreator_Expecter) AddStatements

func (_e *DataUsageFileCreator_Expecter) AddStatements(statements interface{}) *DataUsageFileCreator_AddStatements_Call

AddStatements is a helper method to define mock.On call

  • statements []data_usage.Statement

func (*DataUsageFileCreator_Expecter) Close

Close is a helper method to define mock.On call

func (*DataUsageFileCreator_Expecter) GetImportFileSize added in v0.39.11

GetImportFileSize is a helper method to define mock.On call

func (*DataUsageFileCreator_Expecter) GetStatementCount

GetStatementCount is a helper method to define mock.On call

type DataUsageFileCreator_GetImportFileSize_Call added in v0.39.11

type DataUsageFileCreator_GetImportFileSize_Call struct {
	*mock.Call
}

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

func (*DataUsageFileCreator_GetImportFileSize_Call) Return added in v0.39.11

func (*DataUsageFileCreator_GetImportFileSize_Call) Run added in v0.39.11

func (*DataUsageFileCreator_GetImportFileSize_Call) RunAndReturn added in v0.39.11

type DataUsageFileCreator_GetStatementCount_Call

type DataUsageFileCreator_GetStatementCount_Call struct {
	*mock.Call
}

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

func (*DataUsageFileCreator_GetStatementCount_Call) Return

func (*DataUsageFileCreator_GetStatementCount_Call) Run

func (*DataUsageFileCreator_GetStatementCount_Call) RunAndReturn added in v0.32.0

Jump to

Keyboard shortcuts

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