Documentation ¶
Index ¶
- type Pruner
- type PrunerMock
- func (m *PrunerMock) MinimockFinish()
- func (m *PrunerMock) MinimockPruneDone() bool
- func (m *PrunerMock) MinimockPruneInspect()
- func (m *PrunerMock) MinimockWait(timeout mm_time.Duration)
- func (mmPrune *PrunerMock) Prune(t1 time.Time) (err error)
- func (mmPrune *PrunerMock) PruneAfterCounter() uint64
- func (mmPrune *PrunerMock) PruneBeforeCounter() uint64
- type PrunerMockPruneExpectation
- type PrunerMockPruneParams
- type PrunerMockPruneResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrunerMock ¶
type PrunerMock struct { PruneMock mPrunerMockPrune // contains filtered or unexported fields }
PrunerMock implements Pruner
func NewPrunerMock ¶
func NewPrunerMock(t minimock.Tester) *PrunerMock
NewPrunerMock returns a mock for Pruner
func (*PrunerMock) MinimockFinish ¶
func (m *PrunerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PrunerMock) MinimockPruneDone ¶
func (m *PrunerMock) MinimockPruneDone() bool
MinimockPruneDone returns true if the count of the Prune invocations corresponds the number of defined expectations
func (*PrunerMock) MinimockPruneInspect ¶
func (m *PrunerMock) MinimockPruneInspect()
MinimockPruneInspect logs each unmet expectation
func (*PrunerMock) MinimockWait ¶
func (m *PrunerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*PrunerMock) Prune ¶
func (mmPrune *PrunerMock) Prune(t1 time.Time) (err error)
Prune implements Pruner
func (*PrunerMock) PruneAfterCounter ¶
func (mmPrune *PrunerMock) PruneAfterCounter() uint64
PruneAfterCounter returns a count of finished PrunerMock.Prune invocations
func (*PrunerMock) PruneBeforeCounter ¶
func (mmPrune *PrunerMock) PruneBeforeCounter() uint64
PruneBeforeCounter returns a count of PrunerMock.Prune invocations
type PrunerMockPruneExpectation ¶
type PrunerMockPruneExpectation struct { Counter uint64 // contains filtered or unexported fields }
PrunerMockPruneExpectation specifies expectation struct of the Pruner.Prune
func (*PrunerMockPruneExpectation) Then ¶
func (e *PrunerMockPruneExpectation) Then(err error) *PrunerMock
Then sets up Pruner.Prune return parameters for the expectation previously defined by the When method
type PrunerMockPruneParams ¶
type PrunerMockPruneParams struct {
// contains filtered or unexported fields
}
PrunerMockPruneParams contains parameters of the Pruner.Prune
type PrunerMockPruneResults ¶
type PrunerMockPruneResults struct {
// contains filtered or unexported fields
}
PrunerMockPruneResults contains results of the Pruner.Prune