Documentation ¶
Index ¶
- type MockRepo
- func (_m *MockRepo) AddCompany(ctx context.Context, cik uint32, name string) (bool, error)
- func (_m *MockRepo) AddFact(ctx context.Context, tax string, name string) (uint32, error)
- func (_m *MockRepo) AddFactUnit(ctx context.Context, fact repo.FactUnit) error
- func (_m *MockRepo) AddLabel(ctx context.Context, factId uint32, label string, descr string, ...) error
- func (_m *MockRepo) AddUnit(ctx context.Context, name string) (uint32, error)
- func (_m *MockRepo) CopyFactUnits(ctx context.Context, length int, next func(int) (repo.FactUnit, error)) error
- func (_m *MockRepo) EXPECT() *MockRepo_Expecter
- func (_m *MockRepo) FactLabels(ctx context.Context) ([]repo.FactLabels, error)
- func (_m *MockRepo) FiledCounts(ctx context.Context, cik uint32) (map[time.Time]uint32, error)
- func (_m *MockRepo) LastFiled(ctx context.Context) (map[uint32]time.Time, error)
- func (_m *MockRepo) Units(ctx context.Context) (map[uint32]string, error)
- type MockRepo_AddCompany_Call
- func (_c *MockRepo_AddCompany_Call) Return(_a0 bool, _a1 error) *MockRepo_AddCompany_Call
- func (_c *MockRepo_AddCompany_Call) Run(run func(ctx context.Context, cik uint32, name string)) *MockRepo_AddCompany_Call
- func (_c *MockRepo_AddCompany_Call) RunAndReturn(run func(context.Context, uint32, string) (bool, error)) *MockRepo_AddCompany_Call
- type MockRepo_AddFactUnit_Call
- func (_c *MockRepo_AddFactUnit_Call) Return(_a0 error) *MockRepo_AddFactUnit_Call
- func (_c *MockRepo_AddFactUnit_Call) Run(run func(ctx context.Context, fact repo.FactUnit)) *MockRepo_AddFactUnit_Call
- func (_c *MockRepo_AddFactUnit_Call) RunAndReturn(run func(context.Context, repo.FactUnit) error) *MockRepo_AddFactUnit_Call
- type MockRepo_AddFact_Call
- func (_c *MockRepo_AddFact_Call) Return(_a0 uint32, _a1 error) *MockRepo_AddFact_Call
- func (_c *MockRepo_AddFact_Call) Run(run func(ctx context.Context, tax string, name string)) *MockRepo_AddFact_Call
- func (_c *MockRepo_AddFact_Call) RunAndReturn(run func(context.Context, string, string) (uint32, error)) *MockRepo_AddFact_Call
- type MockRepo_AddLabel_Call
- func (_c *MockRepo_AddLabel_Call) Return(_a0 error) *MockRepo_AddLabel_Call
- func (_c *MockRepo_AddLabel_Call) Run(run func(ctx context.Context, factId uint32, label string, descr string, ...)) *MockRepo_AddLabel_Call
- func (_c *MockRepo_AddLabel_Call) RunAndReturn(run func(context.Context, uint32, string, string, uint64, uint64) error) *MockRepo_AddLabel_Call
- type MockRepo_AddUnit_Call
- func (_c *MockRepo_AddUnit_Call) Return(_a0 uint32, _a1 error) *MockRepo_AddUnit_Call
- func (_c *MockRepo_AddUnit_Call) Run(run func(ctx context.Context, name string)) *MockRepo_AddUnit_Call
- func (_c *MockRepo_AddUnit_Call) RunAndReturn(run func(context.Context, string) (uint32, error)) *MockRepo_AddUnit_Call
- type MockRepo_CopyFactUnits_Call
- func (_c *MockRepo_CopyFactUnits_Call) Return(_a0 error) *MockRepo_CopyFactUnits_Call
- func (_c *MockRepo_CopyFactUnits_Call) Run(...) *MockRepo_CopyFactUnits_Call
- func (_c *MockRepo_CopyFactUnits_Call) RunAndReturn(run func(context.Context, int, func(int) (repo.FactUnit, error)) error) *MockRepo_CopyFactUnits_Call
- type MockRepo_Expecter
- func (_e *MockRepo_Expecter) AddCompany(ctx interface{}, cik interface{}, name interface{}) *MockRepo_AddCompany_Call
- func (_e *MockRepo_Expecter) AddFact(ctx interface{}, tax interface{}, name interface{}) *MockRepo_AddFact_Call
- func (_e *MockRepo_Expecter) AddFactUnit(ctx interface{}, fact interface{}) *MockRepo_AddFactUnit_Call
- func (_e *MockRepo_Expecter) AddLabel(ctx interface{}, factId interface{}, label interface{}, descr interface{}, ...) *MockRepo_AddLabel_Call
- func (_e *MockRepo_Expecter) AddUnit(ctx interface{}, name interface{}) *MockRepo_AddUnit_Call
- func (_e *MockRepo_Expecter) CopyFactUnits(ctx interface{}, length interface{}, next interface{}) *MockRepo_CopyFactUnits_Call
- func (_e *MockRepo_Expecter) FactLabels(ctx interface{}) *MockRepo_FactLabels_Call
- func (_e *MockRepo_Expecter) FiledCounts(ctx interface{}, cik interface{}) *MockRepo_FiledCounts_Call
- func (_e *MockRepo_Expecter) LastFiled(ctx interface{}) *MockRepo_LastFiled_Call
- func (_e *MockRepo_Expecter) Units(ctx interface{}) *MockRepo_Units_Call
- type MockRepo_FactLabels_Call
- func (_c *MockRepo_FactLabels_Call) Return(_a0 []repo.FactLabels, _a1 error) *MockRepo_FactLabels_Call
- func (_c *MockRepo_FactLabels_Call) Run(run func(ctx context.Context)) *MockRepo_FactLabels_Call
- func (_c *MockRepo_FactLabels_Call) RunAndReturn(run func(context.Context) ([]repo.FactLabels, error)) *MockRepo_FactLabels_Call
- type MockRepo_FiledCounts_Call
- func (_c *MockRepo_FiledCounts_Call) Return(_a0 map[time.Time]uint32, _a1 error) *MockRepo_FiledCounts_Call
- func (_c *MockRepo_FiledCounts_Call) Run(run func(ctx context.Context, cik uint32)) *MockRepo_FiledCounts_Call
- func (_c *MockRepo_FiledCounts_Call) RunAndReturn(run func(context.Context, uint32) (map[time.Time]uint32, error)) *MockRepo_FiledCounts_Call
- type MockRepo_LastFiled_Call
- func (_c *MockRepo_LastFiled_Call) Return(_a0 map[uint32]time.Time, _a1 error) *MockRepo_LastFiled_Call
- func (_c *MockRepo_LastFiled_Call) Run(run func(ctx context.Context)) *MockRepo_LastFiled_Call
- func (_c *MockRepo_LastFiled_Call) RunAndReturn(run func(context.Context) (map[uint32]time.Time, error)) *MockRepo_LastFiled_Call
- type MockRepo_Units_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepo ¶
MockRepo is an autogenerated mock type for the Repo type
func NewMockRepo ¶
NewMockRepo creates a new instance of MockRepo. 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 (*MockRepo) AddCompany ¶
AddCompany provides a mock function with given fields: ctx, cik, name
func (*MockRepo) AddFactUnit ¶
AddFactUnit provides a mock function with given fields: ctx, fact
func (*MockRepo) AddLabel ¶
func (_m *MockRepo) AddLabel(ctx context.Context, factId uint32, label string, descr string, labelHash uint64, descrHash uint64) error
AddLabel provides a mock function with given fields: ctx, factId, label, descr, labelHash, descrHash
func (*MockRepo) CopyFactUnits ¶
func (_m *MockRepo) CopyFactUnits(ctx context.Context, length int, next func(int) (repo.FactUnit, error)) error
CopyFactUnits provides a mock function with given fields: ctx, length, next
func (*MockRepo) EXPECT ¶
func (_m *MockRepo) EXPECT() *MockRepo_Expecter
func (*MockRepo) FactLabels ¶
FactLabels provides a mock function with given fields: ctx
func (*MockRepo) FiledCounts ¶
FiledCounts provides a mock function with given fields: ctx, cik
type MockRepo_AddCompany_Call ¶
MockRepo_AddCompany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCompany'
func (*MockRepo_AddCompany_Call) Return ¶
func (_c *MockRepo_AddCompany_Call) Return(_a0 bool, _a1 error) *MockRepo_AddCompany_Call
func (*MockRepo_AddCompany_Call) Run ¶
func (_c *MockRepo_AddCompany_Call) Run(run func(ctx context.Context, cik uint32, name string)) *MockRepo_AddCompany_Call
func (*MockRepo_AddCompany_Call) RunAndReturn ¶
func (_c *MockRepo_AddCompany_Call) RunAndReturn(run func(context.Context, uint32, string) (bool, error)) *MockRepo_AddCompany_Call
type MockRepo_AddFactUnit_Call ¶
MockRepo_AddFactUnit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFactUnit'
func (*MockRepo_AddFactUnit_Call) Return ¶
func (_c *MockRepo_AddFactUnit_Call) Return(_a0 error) *MockRepo_AddFactUnit_Call
func (*MockRepo_AddFactUnit_Call) Run ¶
func (_c *MockRepo_AddFactUnit_Call) Run(run func(ctx context.Context, fact repo.FactUnit)) *MockRepo_AddFactUnit_Call
func (*MockRepo_AddFactUnit_Call) RunAndReturn ¶
func (_c *MockRepo_AddFactUnit_Call) RunAndReturn(run func(context.Context, repo.FactUnit) error) *MockRepo_AddFactUnit_Call
type MockRepo_AddFact_Call ¶
MockRepo_AddFact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFact'
func (*MockRepo_AddFact_Call) Return ¶
func (_c *MockRepo_AddFact_Call) Return(_a0 uint32, _a1 error) *MockRepo_AddFact_Call
func (*MockRepo_AddFact_Call) Run ¶
func (_c *MockRepo_AddFact_Call) Run(run func(ctx context.Context, tax string, name string)) *MockRepo_AddFact_Call
func (*MockRepo_AddFact_Call) RunAndReturn ¶
func (_c *MockRepo_AddFact_Call) RunAndReturn(run func(context.Context, string, string) (uint32, error)) *MockRepo_AddFact_Call
type MockRepo_AddLabel_Call ¶
MockRepo_AddLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddLabel'
func (*MockRepo_AddLabel_Call) Return ¶
func (_c *MockRepo_AddLabel_Call) Return(_a0 error) *MockRepo_AddLabel_Call
func (*MockRepo_AddLabel_Call) Run ¶
func (_c *MockRepo_AddLabel_Call) Run(run func(ctx context.Context, factId uint32, label string, descr string, labelHash uint64, descrHash uint64)) *MockRepo_AddLabel_Call
func (*MockRepo_AddLabel_Call) RunAndReturn ¶
func (_c *MockRepo_AddLabel_Call) RunAndReturn(run func(context.Context, uint32, string, string, uint64, uint64) error) *MockRepo_AddLabel_Call
type MockRepo_AddUnit_Call ¶
MockRepo_AddUnit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUnit'
func (*MockRepo_AddUnit_Call) Return ¶
func (_c *MockRepo_AddUnit_Call) Return(_a0 uint32, _a1 error) *MockRepo_AddUnit_Call
func (*MockRepo_AddUnit_Call) Run ¶
func (_c *MockRepo_AddUnit_Call) Run(run func(ctx context.Context, name string)) *MockRepo_AddUnit_Call
func (*MockRepo_AddUnit_Call) RunAndReturn ¶
func (_c *MockRepo_AddUnit_Call) RunAndReturn(run func(context.Context, string) (uint32, error)) *MockRepo_AddUnit_Call
type MockRepo_CopyFactUnits_Call ¶
MockRepo_CopyFactUnits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyFactUnits'
func (*MockRepo_CopyFactUnits_Call) Return ¶
func (_c *MockRepo_CopyFactUnits_Call) Return(_a0 error) *MockRepo_CopyFactUnits_Call
func (*MockRepo_CopyFactUnits_Call) Run ¶
func (_c *MockRepo_CopyFactUnits_Call) Run(run func(ctx context.Context, length int, next func(int) (repo.FactUnit, error))) *MockRepo_CopyFactUnits_Call
func (*MockRepo_CopyFactUnits_Call) RunAndReturn ¶
func (_c *MockRepo_CopyFactUnits_Call) RunAndReturn(run func(context.Context, int, func(int) (repo.FactUnit, error)) error) *MockRepo_CopyFactUnits_Call
type MockRepo_Expecter ¶
type MockRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRepo_Expecter) AddCompany ¶
func (_e *MockRepo_Expecter) AddCompany(ctx interface{}, cik interface{}, name interface{}) *MockRepo_AddCompany_Call
AddCompany is a helper method to define mock.On call
- ctx context.Context
- cik uint32
- name string
func (*MockRepo_Expecter) AddFact ¶
func (_e *MockRepo_Expecter) AddFact(ctx interface{}, tax interface{}, name interface{}) *MockRepo_AddFact_Call
AddFact is a helper method to define mock.On call
- ctx context.Context
- tax string
- name string
func (*MockRepo_Expecter) AddFactUnit ¶
func (_e *MockRepo_Expecter) AddFactUnit(ctx interface{}, fact interface{}) *MockRepo_AddFactUnit_Call
AddFactUnit is a helper method to define mock.On call
- ctx context.Context
- fact repo.FactUnit
func (*MockRepo_Expecter) AddLabel ¶
func (_e *MockRepo_Expecter) AddLabel(ctx interface{}, factId interface{}, label interface{}, descr interface{}, labelHash interface{}, descrHash interface{}) *MockRepo_AddLabel_Call
AddLabel is a helper method to define mock.On call
- ctx context.Context
- factId uint32
- label string
- descr string
- labelHash uint64
- descrHash uint64
func (*MockRepo_Expecter) AddUnit ¶
func (_e *MockRepo_Expecter) AddUnit(ctx interface{}, name interface{}) *MockRepo_AddUnit_Call
AddUnit is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockRepo_Expecter) CopyFactUnits ¶
func (_e *MockRepo_Expecter) CopyFactUnits(ctx interface{}, length interface{}, next interface{}) *MockRepo_CopyFactUnits_Call
CopyFactUnits is a helper method to define mock.On call
- ctx context.Context
- length int
- next func(int)(repo.FactUnit , error)
func (*MockRepo_Expecter) FactLabels ¶
func (_e *MockRepo_Expecter) FactLabels(ctx interface{}) *MockRepo_FactLabels_Call
FactLabels is a helper method to define mock.On call
- ctx context.Context
func (*MockRepo_Expecter) FiledCounts ¶
func (_e *MockRepo_Expecter) FiledCounts(ctx interface{}, cik interface{}) *MockRepo_FiledCounts_Call
FiledCounts is a helper method to define mock.On call
- ctx context.Context
- cik uint32
func (*MockRepo_Expecter) LastFiled ¶
func (_e *MockRepo_Expecter) LastFiled(ctx interface{}) *MockRepo_LastFiled_Call
LastFiled is a helper method to define mock.On call
- ctx context.Context
func (*MockRepo_Expecter) Units ¶
func (_e *MockRepo_Expecter) Units(ctx interface{}) *MockRepo_Units_Call
Units is a helper method to define mock.On call
- ctx context.Context
type MockRepo_FactLabels_Call ¶
MockRepo_FactLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FactLabels'
func (*MockRepo_FactLabels_Call) Return ¶
func (_c *MockRepo_FactLabels_Call) Return(_a0 []repo.FactLabels, _a1 error) *MockRepo_FactLabels_Call
func (*MockRepo_FactLabels_Call) Run ¶
func (_c *MockRepo_FactLabels_Call) Run(run func(ctx context.Context)) *MockRepo_FactLabels_Call
func (*MockRepo_FactLabels_Call) RunAndReturn ¶
func (_c *MockRepo_FactLabels_Call) RunAndReturn(run func(context.Context) ([]repo.FactLabels, error)) *MockRepo_FactLabels_Call
type MockRepo_FiledCounts_Call ¶
MockRepo_FiledCounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FiledCounts'
func (*MockRepo_FiledCounts_Call) Return ¶
func (_c *MockRepo_FiledCounts_Call) Return(_a0 map[time.Time]uint32, _a1 error) *MockRepo_FiledCounts_Call
func (*MockRepo_FiledCounts_Call) Run ¶
func (_c *MockRepo_FiledCounts_Call) Run(run func(ctx context.Context, cik uint32)) *MockRepo_FiledCounts_Call
func (*MockRepo_FiledCounts_Call) RunAndReturn ¶
func (_c *MockRepo_FiledCounts_Call) RunAndReturn(run func(context.Context, uint32) (map[time.Time]uint32, error)) *MockRepo_FiledCounts_Call
type MockRepo_LastFiled_Call ¶
MockRepo_LastFiled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastFiled'
func (*MockRepo_LastFiled_Call) Return ¶
func (_c *MockRepo_LastFiled_Call) Return(_a0 map[uint32]time.Time, _a1 error) *MockRepo_LastFiled_Call
func (*MockRepo_LastFiled_Call) Run ¶
func (_c *MockRepo_LastFiled_Call) Run(run func(ctx context.Context)) *MockRepo_LastFiled_Call
func (*MockRepo_LastFiled_Call) RunAndReturn ¶
func (_c *MockRepo_LastFiled_Call) RunAndReturn(run func(context.Context) (map[uint32]time.Time, error)) *MockRepo_LastFiled_Call
type MockRepo_Units_Call ¶
MockRepo_Units_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Units'
func (*MockRepo_Units_Call) Return ¶
func (_c *MockRepo_Units_Call) Return(_a0 map[uint32]string, _a1 error) *MockRepo_Units_Call
func (*MockRepo_Units_Call) Run ¶
func (_c *MockRepo_Units_Call) Run(run func(ctx context.Context)) *MockRepo_Units_Call
func (*MockRepo_Units_Call) RunAndReturn ¶
func (_c *MockRepo_Units_Call) RunAndReturn(run func(context.Context) (map[uint32]string, error)) *MockRepo_Units_Call