db

package
v0.0.0-...-bfcf95a Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepo

type MockRepo struct {
	mock.Mock
}

MockRepo is an autogenerated mock type for the Repo type

func NewMockRepo

func NewMockRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepo

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

func (_m *MockRepo) AddCompany(ctx context.Context, cik uint32, name string) (bool, error)

AddCompany provides a mock function with given fields: ctx, cik, name

func (*MockRepo) AddFact

func (_m *MockRepo) AddFact(ctx context.Context, tax string, name string) (uint32, error)

AddFact provides a mock function with given fields: ctx, tax, name

func (*MockRepo) AddFactUnit

func (_m *MockRepo) AddFactUnit(ctx context.Context, fact repo.FactUnit) error

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) AddUnit

func (_m *MockRepo) AddUnit(ctx context.Context, name string) (uint32, error)

AddUnit provides a mock function with given fields: ctx, name

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

func (_m *MockRepo) FactLabels(ctx context.Context) ([]repo.FactLabels, error)

FactLabels provides a mock function with given fields: ctx

func (*MockRepo) FiledCounts

func (_m *MockRepo) FiledCounts(ctx context.Context, cik uint32) (map[time.Time]uint32, error)

FiledCounts provides a mock function with given fields: ctx, cik

func (*MockRepo) LastFiled

func (_m *MockRepo) LastFiled(ctx context.Context) (map[uint32]time.Time, error)

LastFiled provides a mock function with given fields: ctx

func (*MockRepo) Units

func (_m *MockRepo) Units(ctx context.Context) (map[uint32]string, error)

Units provides a mock function with given fields: ctx

type MockRepo_AddCompany_Call

type MockRepo_AddCompany_Call struct {
	*mock.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 (*MockRepo_AddCompany_Call) Run

func (*MockRepo_AddCompany_Call) RunAndReturn

type MockRepo_AddFactUnit_Call

type MockRepo_AddFactUnit_Call struct {
	*mock.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 (*MockRepo_AddFactUnit_Call) Run

func (*MockRepo_AddFactUnit_Call) RunAndReturn

type MockRepo_AddFact_Call

type MockRepo_AddFact_Call struct {
	*mock.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 (*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

type MockRepo_AddLabel_Call

type MockRepo_AddLabel_Call struct {
	*mock.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 (*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

type MockRepo_AddUnit_Call

type MockRepo_AddUnit_Call struct {
	*mock.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 (*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

type MockRepo_CopyFactUnits_Call

type MockRepo_CopyFactUnits_Call struct {
	*mock.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 (*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

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

type MockRepo_FactLabels_Call struct {
	*mock.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 (*MockRepo_FactLabels_Call) Run

func (*MockRepo_FactLabels_Call) RunAndReturn

type MockRepo_FiledCounts_Call

type MockRepo_FiledCounts_Call struct {
	*mock.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 (*MockRepo_FiledCounts_Call) Run

func (*MockRepo_FiledCounts_Call) RunAndReturn

type MockRepo_LastFiled_Call

type MockRepo_LastFiled_Call struct {
	*mock.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 (*MockRepo_LastFiled_Call) Run

func (*MockRepo_LastFiled_Call) RunAndReturn

type MockRepo_Units_Call

type MockRepo_Units_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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