Documentation ¶
Index ¶
- type DataUsageFileCreator
- func (_m *DataUsageFileCreator) AddStatements(statements []data_usage.Statement) error
- func (_m *DataUsageFileCreator) Close()
- func (_m *DataUsageFileCreator) EXPECT() *DataUsageFileCreator_Expecter
- func (_m *DataUsageFileCreator) GetImportFileSize() uint64
- func (_m *DataUsageFileCreator) GetStatementCount() int
- type DataUsageFileCreator_AddStatements_Call
- func (_c *DataUsageFileCreator_AddStatements_Call) Return(_a0 error) *DataUsageFileCreator_AddStatements_Call
- func (_c *DataUsageFileCreator_AddStatements_Call) Run(run func(statements []data_usage.Statement)) *DataUsageFileCreator_AddStatements_Call
- func (_c *DataUsageFileCreator_AddStatements_Call) RunAndReturn(run func([]data_usage.Statement) error) *DataUsageFileCreator_AddStatements_Call
- type DataUsageFileCreator_Close_Call
- type DataUsageFileCreator_Expecter
- func (_e *DataUsageFileCreator_Expecter) AddStatements(statements interface{}) *DataUsageFileCreator_AddStatements_Call
- func (_e *DataUsageFileCreator_Expecter) Close() *DataUsageFileCreator_Close_Call
- func (_e *DataUsageFileCreator_Expecter) GetImportFileSize() *DataUsageFileCreator_GetImportFileSize_Call
- func (_e *DataUsageFileCreator_Expecter) GetStatementCount() *DataUsageFileCreator_GetStatementCount_Call
- type DataUsageFileCreator_GetImportFileSize_Call
- func (_c *DataUsageFileCreator_GetImportFileSize_Call) Return(_a0 uint64) *DataUsageFileCreator_GetImportFileSize_Call
- func (_c *DataUsageFileCreator_GetImportFileSize_Call) Run(run func()) *DataUsageFileCreator_GetImportFileSize_Call
- func (_c *DataUsageFileCreator_GetImportFileSize_Call) RunAndReturn(run func() uint64) *DataUsageFileCreator_GetImportFileSize_Call
- type DataUsageFileCreator_GetStatementCount_Call
- func (_c *DataUsageFileCreator_GetStatementCount_Call) Return(_a0 int) *DataUsageFileCreator_GetStatementCount_Call
- func (_c *DataUsageFileCreator_GetStatementCount_Call) Run(run func()) *DataUsageFileCreator_GetStatementCount_Call
- func (_c *DataUsageFileCreator_GetStatementCount_Call) RunAndReturn(run func() int) *DataUsageFileCreator_GetStatementCount_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataUsageFileCreator ¶
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 (_m *DataUsageFileCreator) EXPECT() *DataUsageFileCreator_Expecter
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 ¶
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 (_c *DataUsageFileCreator_AddStatements_Call) Return(_a0 error) *DataUsageFileCreator_AddStatements_Call
func (*DataUsageFileCreator_AddStatements_Call) Run ¶
func (_c *DataUsageFileCreator_AddStatements_Call) Run(run func(statements []data_usage.Statement)) *DataUsageFileCreator_AddStatements_Call
func (*DataUsageFileCreator_AddStatements_Call) RunAndReturn ¶ added in v0.32.0
func (_c *DataUsageFileCreator_AddStatements_Call) RunAndReturn(run func([]data_usage.Statement) error) *DataUsageFileCreator_AddStatements_Call
type DataUsageFileCreator_Close_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 (_c *DataUsageFileCreator_Close_Call) Return() *DataUsageFileCreator_Close_Call
func (*DataUsageFileCreator_Close_Call) Run ¶
func (_c *DataUsageFileCreator_Close_Call) Run(run func()) *DataUsageFileCreator_Close_Call
func (*DataUsageFileCreator_Close_Call) RunAndReturn ¶ added in v0.32.0
func (_c *DataUsageFileCreator_Close_Call) RunAndReturn(run func()) *DataUsageFileCreator_Close_Call
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 ¶
func (_e *DataUsageFileCreator_Expecter) Close() *DataUsageFileCreator_Close_Call
Close is a helper method to define mock.On call
func (*DataUsageFileCreator_Expecter) GetImportFileSize ¶ added in v0.39.11
func (_e *DataUsageFileCreator_Expecter) GetImportFileSize() *DataUsageFileCreator_GetImportFileSize_Call
GetImportFileSize is a helper method to define mock.On call
func (*DataUsageFileCreator_Expecter) GetStatementCount ¶
func (_e *DataUsageFileCreator_Expecter) GetStatementCount() *DataUsageFileCreator_GetStatementCount_Call
GetStatementCount is a helper method to define mock.On call
type DataUsageFileCreator_GetImportFileSize_Call ¶ added in v0.39.11
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 (_c *DataUsageFileCreator_GetImportFileSize_Call) Return(_a0 uint64) *DataUsageFileCreator_GetImportFileSize_Call
func (*DataUsageFileCreator_GetImportFileSize_Call) Run ¶ added in v0.39.11
func (_c *DataUsageFileCreator_GetImportFileSize_Call) Run(run func()) *DataUsageFileCreator_GetImportFileSize_Call
func (*DataUsageFileCreator_GetImportFileSize_Call) RunAndReturn ¶ added in v0.39.11
func (_c *DataUsageFileCreator_GetImportFileSize_Call) RunAndReturn(run func() uint64) *DataUsageFileCreator_GetImportFileSize_Call
type DataUsageFileCreator_GetStatementCount_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 (_c *DataUsageFileCreator_GetStatementCount_Call) Return(_a0 int) *DataUsageFileCreator_GetStatementCount_Call
func (*DataUsageFileCreator_GetStatementCount_Call) Run ¶
func (_c *DataUsageFileCreator_GetStatementCount_Call) Run(run func()) *DataUsageFileCreator_GetStatementCount_Call
func (*DataUsageFileCreator_GetStatementCount_Call) RunAndReturn ¶ added in v0.32.0
func (_c *DataUsageFileCreator_GetStatementCount_Call) RunAndReturn(run func() int) *DataUsageFileCreator_GetStatementCount_Call