Documentation ¶
Index ¶
- type Flag
- type FlagMock
- func (mmDone *FlagMock) Done(ctx context.Context, isDone func() bool)
- func (mmDone *FlagMock) DoneAfterCounter() uint64
- func (mmDone *FlagMock) DoneBeforeCounter() uint64
- func (mmIsStopped *FlagMock) IsStopped() (b1 bool)
- func (mmIsStopped *FlagMock) IsStoppedAfterCounter() uint64
- func (mmIsStopped *FlagMock) IsStoppedBeforeCounter() uint64
- func (m *FlagMock) MinimockDoneDone() bool
- func (m *FlagMock) MinimockDoneInspect()
- func (m *FlagMock) MinimockFinish()
- func (m *FlagMock) MinimockIsStoppedDone() bool
- func (m *FlagMock) MinimockIsStoppedInspect()
- func (m *FlagMock) MinimockStopDone() bool
- func (m *FlagMock) MinimockStopInspect()
- func (m *FlagMock) MinimockWait(timeout mm_time.Duration)
- func (mmStop *FlagMock) Stop(ctx context.Context) (f1 func())
- func (mmStop *FlagMock) StopAfterCounter() uint64
- func (mmStop *FlagMock) StopBeforeCounter() uint64
- type FlagMockDoneExpectation
- type FlagMockDoneParams
- type FlagMockIsStoppedExpectation
- type FlagMockIsStoppedResults
- type FlagMockStopExpectation
- type FlagMockStopParams
- type FlagMockStopResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type FlagMock ¶
type FlagMock struct { DoneMock mFlagMockDone IsStoppedMock mFlagMockIsStopped StopMock mFlagMockStop // contains filtered or unexported fields }
FlagMock implements Flag
func NewFlagMock ¶
NewFlagMock returns a mock for Flag
func (*FlagMock) DoneAfterCounter ¶
DoneAfterCounter returns a count of finished FlagMock.Done invocations
func (*FlagMock) DoneBeforeCounter ¶
DoneBeforeCounter returns a count of FlagMock.Done invocations
func (*FlagMock) IsStoppedAfterCounter ¶
IsStoppedAfterCounter returns a count of finished FlagMock.IsStopped invocations
func (*FlagMock) IsStoppedBeforeCounter ¶
IsStoppedBeforeCounter returns a count of FlagMock.IsStopped invocations
func (*FlagMock) MinimockDoneDone ¶
MinimockDoneDone returns true if the count of the Done invocations corresponds the number of defined expectations
func (*FlagMock) MinimockDoneInspect ¶
func (m *FlagMock) MinimockDoneInspect()
MinimockDoneInspect logs each unmet expectation
func (*FlagMock) MinimockFinish ¶
func (m *FlagMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*FlagMock) MinimockIsStoppedDone ¶
MinimockIsStoppedDone returns true if the count of the IsStopped invocations corresponds the number of defined expectations
func (*FlagMock) MinimockIsStoppedInspect ¶
func (m *FlagMock) MinimockIsStoppedInspect()
MinimockIsStoppedInspect logs each unmet expectation
func (*FlagMock) MinimockStopDone ¶
MinimockStopDone returns true if the count of the Stop invocations corresponds the number of defined expectations
func (*FlagMock) MinimockStopInspect ¶
func (m *FlagMock) MinimockStopInspect()
MinimockStopInspect logs each unmet expectation
func (*FlagMock) MinimockWait ¶
MinimockWait waits for all mocked methods to be called the expected number of times
func (*FlagMock) StopAfterCounter ¶
StopAfterCounter returns a count of finished FlagMock.Stop invocations
func (*FlagMock) StopBeforeCounter ¶
StopBeforeCounter returns a count of FlagMock.Stop invocations
type FlagMockDoneExpectation ¶
type FlagMockDoneExpectation struct { Counter uint64 // contains filtered or unexported fields }
FlagMockDoneExpectation specifies expectation struct of the Flag.Done
type FlagMockDoneParams ¶
type FlagMockDoneParams struct {
// contains filtered or unexported fields
}
FlagMockDoneParams contains parameters of the Flag.Done
type FlagMockIsStoppedExpectation ¶
type FlagMockIsStoppedExpectation struct { Counter uint64 // contains filtered or unexported fields }
FlagMockIsStoppedExpectation specifies expectation struct of the Flag.IsStopped
type FlagMockIsStoppedResults ¶
type FlagMockIsStoppedResults struct {
// contains filtered or unexported fields
}
FlagMockIsStoppedResults contains results of the Flag.IsStopped
type FlagMockStopExpectation ¶
type FlagMockStopExpectation struct { Counter uint64 // contains filtered or unexported fields }
FlagMockStopExpectation specifies expectation struct of the Flag.Stop
func (*FlagMockStopExpectation) Then ¶
func (e *FlagMockStopExpectation) Then(f1 func()) *FlagMock
Then sets up Flag.Stop return parameters for the expectation previously defined by the When method
type FlagMockStopParams ¶
type FlagMockStopParams struct {
// contains filtered or unexported fields
}
FlagMockStopParams contains parameters of the Flag.Stop
type FlagMockStopResults ¶
type FlagMockStopResults struct {
// contains filtered or unexported fields
}
FlagMockStopResults contains results of the Flag.Stop