Documentation ¶
Index ¶
- type HabitCreatorMock
- func (mmAdd *HabitCreatorMock) Add(ctx context.Context, habit mm_habit.Habit) (err error)
- func (mmAdd *HabitCreatorMock) AddAfterCounter() uint64
- func (mmAdd *HabitCreatorMock) AddBeforeCounter() uint64
- func (m *HabitCreatorMock) MinimockAddDone() bool
- func (m *HabitCreatorMock) MinimockAddInspect()
- func (m *HabitCreatorMock) MinimockFinish()
- func (m *HabitCreatorMock) MinimockWait(timeout mm_time.Duration)
- type HabitCreatorMockAddExpectation
- type HabitCreatorMockAddParams
- type HabitCreatorMockAddResults
- type HabitFinderMock
- func (mmFind *HabitFinderMock) Find(ctx context.Context, id mm_habit.ID) (h1 mm_habit.Habit, err error)
- func (mmFind *HabitFinderMock) FindAfterCounter() uint64
- func (mmFind *HabitFinderMock) FindBeforeCounter() uint64
- func (m *HabitFinderMock) MinimockFindDone() bool
- func (m *HabitFinderMock) MinimockFindInspect()
- func (m *HabitFinderMock) MinimockFinish()
- func (m *HabitFinderMock) MinimockWait(timeout mm_time.Duration)
- type HabitFinderMockFindExpectation
- type HabitFinderMockFindParams
- type HabitFinderMockFindResults
- type HabitListerMock
- func (mmFindAll *HabitListerMock) FindAll(ctx context.Context) (ha1 []mm_habit.Habit, err error)
- func (mmFindAll *HabitListerMock) FindAllAfterCounter() uint64
- func (mmFindAll *HabitListerMock) FindAllBeforeCounter() uint64
- func (m *HabitListerMock) MinimockFindAllDone() bool
- func (m *HabitListerMock) MinimockFindAllInspect()
- func (m *HabitListerMock) MinimockFinish()
- func (m *HabitListerMock) MinimockWait(timeout mm_time.Duration)
- type HabitListerMockFindAllExpectation
- type HabitListerMockFindAllParams
- type HabitListerMockFindAllResults
- type TickAdderMock
- func (mmAddTick *TickAdderMock) AddTick(ctx context.Context, id mm_habit.ID, t time.Time) (err error)
- func (mmAddTick *TickAdderMock) AddTickAfterCounter() uint64
- func (mmAddTick *TickAdderMock) AddTickBeforeCounter() uint64
- func (m *TickAdderMock) MinimockAddTickDone() bool
- func (m *TickAdderMock) MinimockAddTickInspect()
- func (m *TickAdderMock) MinimockFinish()
- func (m *TickAdderMock) MinimockWait(timeout mm_time.Duration)
- type TickAdderMockAddTickExpectation
- type TickAdderMockAddTickParams
- type TickAdderMockAddTickResults
- type TickFinderMock
- func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicks(ctx context.Context, id mm_habit.ID, t time.Time) (ta1 []time.Time, err error)
- func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicksAfterCounter() uint64
- func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicksBeforeCounter() uint64
- func (m *TickFinderMock) MinimockFindWeeklyTicksDone() bool
- func (m *TickFinderMock) MinimockFindWeeklyTicksInspect()
- func (m *TickFinderMock) MinimockFinish()
- func (m *TickFinderMock) MinimockWait(timeout mm_time.Duration)
- type TickFinderMockFindWeeklyTicksExpectation
- type TickFinderMockFindWeeklyTicksParams
- type TickFinderMockFindWeeklyTicksResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HabitCreatorMock ¶
type HabitCreatorMock struct { AddMock mHabitCreatorMockAdd // contains filtered or unexported fields }
HabitCreatorMock implements habit.habitCreator
func NewHabitCreatorMock ¶
func NewHabitCreatorMock(t minimock.Tester) *HabitCreatorMock
NewHabitCreatorMock returns a mock for habit.habitCreator
func (*HabitCreatorMock) AddAfterCounter ¶
func (mmAdd *HabitCreatorMock) AddAfterCounter() uint64
AddAfterCounter returns a count of finished HabitCreatorMock.Add invocations
func (*HabitCreatorMock) AddBeforeCounter ¶
func (mmAdd *HabitCreatorMock) AddBeforeCounter() uint64
AddBeforeCounter returns a count of HabitCreatorMock.Add invocations
func (*HabitCreatorMock) MinimockAddDone ¶
func (m *HabitCreatorMock) MinimockAddDone() bool
MinimockAddDone returns true if the count of the Add invocations corresponds the number of defined expectations
func (*HabitCreatorMock) MinimockAddInspect ¶
func (m *HabitCreatorMock) MinimockAddInspect()
MinimockAddInspect logs each unmet expectation
func (*HabitCreatorMock) MinimockFinish ¶
func (m *HabitCreatorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*HabitCreatorMock) MinimockWait ¶
func (m *HabitCreatorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type HabitCreatorMockAddExpectation ¶
type HabitCreatorMockAddExpectation struct { Counter uint64 // contains filtered or unexported fields }
HabitCreatorMockAddExpectation specifies expectation struct of the habitCreator.Add
func (*HabitCreatorMockAddExpectation) Then ¶
func (e *HabitCreatorMockAddExpectation) Then(err error) *HabitCreatorMock
Then sets up habitCreator.Add return parameters for the expectation previously defined by the When method
type HabitCreatorMockAddParams ¶
type HabitCreatorMockAddParams struct {
// contains filtered or unexported fields
}
HabitCreatorMockAddParams contains parameters of the habitCreator.Add
type HabitCreatorMockAddResults ¶
type HabitCreatorMockAddResults struct {
// contains filtered or unexported fields
}
HabitCreatorMockAddResults contains results of the habitCreator.Add
type HabitFinderMock ¶
type HabitFinderMock struct { FindMock mHabitFinderMockFind // contains filtered or unexported fields }
HabitFinderMock implements habit.habitFinder
func NewHabitFinderMock ¶
func NewHabitFinderMock(t minimock.Tester) *HabitFinderMock
NewHabitFinderMock returns a mock for habit.habitFinder
func (*HabitFinderMock) Find ¶
func (mmFind *HabitFinderMock) Find(ctx context.Context, id mm_habit.ID) (h1 mm_habit.Habit, err error)
Find implements habit.habitFinder
func (*HabitFinderMock) FindAfterCounter ¶
func (mmFind *HabitFinderMock) FindAfterCounter() uint64
FindAfterCounter returns a count of finished HabitFinderMock.Find invocations
func (*HabitFinderMock) FindBeforeCounter ¶
func (mmFind *HabitFinderMock) FindBeforeCounter() uint64
FindBeforeCounter returns a count of HabitFinderMock.Find invocations
func (*HabitFinderMock) MinimockFindDone ¶
func (m *HabitFinderMock) MinimockFindDone() bool
MinimockFindDone returns true if the count of the Find invocations corresponds the number of defined expectations
func (*HabitFinderMock) MinimockFindInspect ¶
func (m *HabitFinderMock) MinimockFindInspect()
MinimockFindInspect logs each unmet expectation
func (*HabitFinderMock) MinimockFinish ¶
func (m *HabitFinderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*HabitFinderMock) MinimockWait ¶
func (m *HabitFinderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type HabitFinderMockFindExpectation ¶
type HabitFinderMockFindExpectation struct { Counter uint64 // contains filtered or unexported fields }
HabitFinderMockFindExpectation specifies expectation struct of the habitFinder.Find
func (*HabitFinderMockFindExpectation) Then ¶
func (e *HabitFinderMockFindExpectation) Then(h1 mm_habit.Habit, err error) *HabitFinderMock
Then sets up habitFinder.Find return parameters for the expectation previously defined by the When method
type HabitFinderMockFindParams ¶
type HabitFinderMockFindParams struct {
// contains filtered or unexported fields
}
HabitFinderMockFindParams contains parameters of the habitFinder.Find
type HabitFinderMockFindResults ¶
type HabitFinderMockFindResults struct {
// contains filtered or unexported fields
}
HabitFinderMockFindResults contains results of the habitFinder.Find
type HabitListerMock ¶
type HabitListerMock struct { FindAllMock mHabitListerMockFindAll // contains filtered or unexported fields }
HabitListerMock implements habit.habitLister
func NewHabitListerMock ¶
func NewHabitListerMock(t minimock.Tester) *HabitListerMock
NewHabitListerMock returns a mock for habit.habitLister
func (*HabitListerMock) FindAllAfterCounter ¶
func (mmFindAll *HabitListerMock) FindAllAfterCounter() uint64
FindAllAfterCounter returns a count of finished HabitListerMock.FindAll invocations
func (*HabitListerMock) FindAllBeforeCounter ¶
func (mmFindAll *HabitListerMock) FindAllBeforeCounter() uint64
FindAllBeforeCounter returns a count of HabitListerMock.FindAll invocations
func (*HabitListerMock) MinimockFindAllDone ¶
func (m *HabitListerMock) MinimockFindAllDone() bool
MinimockFindAllDone returns true if the count of the FindAll invocations corresponds the number of defined expectations
func (*HabitListerMock) MinimockFindAllInspect ¶
func (m *HabitListerMock) MinimockFindAllInspect()
MinimockFindAllInspect logs each unmet expectation
func (*HabitListerMock) MinimockFinish ¶
func (m *HabitListerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*HabitListerMock) MinimockWait ¶
func (m *HabitListerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type HabitListerMockFindAllExpectation ¶
type HabitListerMockFindAllExpectation struct { Counter uint64 // contains filtered or unexported fields }
HabitListerMockFindAllExpectation specifies expectation struct of the habitLister.FindAll
func (*HabitListerMockFindAllExpectation) Then ¶
func (e *HabitListerMockFindAllExpectation) Then(ha1 []mm_habit.Habit, err error) *HabitListerMock
Then sets up habitLister.FindAll return parameters for the expectation previously defined by the When method
type HabitListerMockFindAllParams ¶
type HabitListerMockFindAllParams struct {
// contains filtered or unexported fields
}
HabitListerMockFindAllParams contains parameters of the habitLister.FindAll
type HabitListerMockFindAllResults ¶
type HabitListerMockFindAllResults struct {
// contains filtered or unexported fields
}
HabitListerMockFindAllResults contains results of the habitLister.FindAll
type TickAdderMock ¶
type TickAdderMock struct { AddTickMock mTickAdderMockAddTick // contains filtered or unexported fields }
TickAdderMock implements habit.tickAdder
func NewTickAdderMock ¶
func NewTickAdderMock(t minimock.Tester) *TickAdderMock
NewTickAdderMock returns a mock for habit.tickAdder
func (*TickAdderMock) AddTick ¶
func (mmAddTick *TickAdderMock) AddTick(ctx context.Context, id mm_habit.ID, t time.Time) (err error)
AddTick implements habit.tickAdder
func (*TickAdderMock) AddTickAfterCounter ¶
func (mmAddTick *TickAdderMock) AddTickAfterCounter() uint64
AddTickAfterCounter returns a count of finished TickAdderMock.AddTick invocations
func (*TickAdderMock) AddTickBeforeCounter ¶
func (mmAddTick *TickAdderMock) AddTickBeforeCounter() uint64
AddTickBeforeCounter returns a count of TickAdderMock.AddTick invocations
func (*TickAdderMock) MinimockAddTickDone ¶
func (m *TickAdderMock) MinimockAddTickDone() bool
MinimockAddTickDone returns true if the count of the AddTick invocations corresponds the number of defined expectations
func (*TickAdderMock) MinimockAddTickInspect ¶
func (m *TickAdderMock) MinimockAddTickInspect()
MinimockAddTickInspect logs each unmet expectation
func (*TickAdderMock) MinimockFinish ¶
func (m *TickAdderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TickAdderMock) MinimockWait ¶
func (m *TickAdderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type TickAdderMockAddTickExpectation ¶
type TickAdderMockAddTickExpectation struct { Counter uint64 // contains filtered or unexported fields }
TickAdderMockAddTickExpectation specifies expectation struct of the tickAdder.AddTick
func (*TickAdderMockAddTickExpectation) Then ¶
func (e *TickAdderMockAddTickExpectation) Then(err error) *TickAdderMock
Then sets up tickAdder.AddTick return parameters for the expectation previously defined by the When method
type TickAdderMockAddTickParams ¶
type TickAdderMockAddTickParams struct {
// contains filtered or unexported fields
}
TickAdderMockAddTickParams contains parameters of the tickAdder.AddTick
type TickAdderMockAddTickResults ¶
type TickAdderMockAddTickResults struct {
// contains filtered or unexported fields
}
TickAdderMockAddTickResults contains results of the tickAdder.AddTick
type TickFinderMock ¶
type TickFinderMock struct { FindWeeklyTicksMock mTickFinderMockFindWeeklyTicks // contains filtered or unexported fields }
TickFinderMock implements habit.tickFinder
func NewTickFinderMock ¶
func NewTickFinderMock(t minimock.Tester) *TickFinderMock
NewTickFinderMock returns a mock for habit.tickFinder
func (*TickFinderMock) FindWeeklyTicks ¶
func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicks(ctx context.Context, id mm_habit.ID, t time.Time) (ta1 []time.Time, err error)
FindWeeklyTicks implements habit.tickFinder
func (*TickFinderMock) FindWeeklyTicksAfterCounter ¶
func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicksAfterCounter() uint64
FindWeeklyTicksAfterCounter returns a count of finished TickFinderMock.FindWeeklyTicks invocations
func (*TickFinderMock) FindWeeklyTicksBeforeCounter ¶
func (mmFindWeeklyTicks *TickFinderMock) FindWeeklyTicksBeforeCounter() uint64
FindWeeklyTicksBeforeCounter returns a count of TickFinderMock.FindWeeklyTicks invocations
func (*TickFinderMock) MinimockFindWeeklyTicksDone ¶
func (m *TickFinderMock) MinimockFindWeeklyTicksDone() bool
MinimockFindWeeklyTicksDone returns true if the count of the FindWeeklyTicks invocations corresponds the number of defined expectations
func (*TickFinderMock) MinimockFindWeeklyTicksInspect ¶
func (m *TickFinderMock) MinimockFindWeeklyTicksInspect()
MinimockFindWeeklyTicksInspect logs each unmet expectation
func (*TickFinderMock) MinimockFinish ¶
func (m *TickFinderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TickFinderMock) MinimockWait ¶
func (m *TickFinderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type TickFinderMockFindWeeklyTicksExpectation ¶
type TickFinderMockFindWeeklyTicksExpectation struct { Counter uint64 // contains filtered or unexported fields }
TickFinderMockFindWeeklyTicksExpectation specifies expectation struct of the tickFinder.FindWeeklyTicks
func (*TickFinderMockFindWeeklyTicksExpectation) Then ¶
func (e *TickFinderMockFindWeeklyTicksExpectation) Then(ta1 []time.Time, err error) *TickFinderMock
Then sets up tickFinder.FindWeeklyTicks return parameters for the expectation previously defined by the When method
type TickFinderMockFindWeeklyTicksParams ¶
type TickFinderMockFindWeeklyTicksParams struct {
// contains filtered or unexported fields
}
TickFinderMockFindWeeklyTicksParams contains parameters of the tickFinder.FindWeeklyTicks
type TickFinderMockFindWeeklyTicksResults ¶
type TickFinderMockFindWeeklyTicksResults struct {
// contains filtered or unexported fields
}
TickFinderMockFindWeeklyTicksResults contains results of the tickFinder.FindWeeklyTicks