Documentation ¶
Index ¶
- type CommandRunnerMock
- func (mmCombinedOutput *CommandRunnerMock) CombinedOutput() (ba1 []byte, err error)
- func (mmCombinedOutput *CommandRunnerMock) CombinedOutputAfterCounter() uint64
- func (mmCombinedOutput *CommandRunnerMock) CombinedOutputBeforeCounter() uint64
- func (m *CommandRunnerMock) MinimockCombinedOutputDone() bool
- func (m *CommandRunnerMock) MinimockCombinedOutputInspect()
- func (m *CommandRunnerMock) MinimockFinish()
- func (m *CommandRunnerMock) MinimockStdinPipeDone() bool
- func (m *CommandRunnerMock) MinimockStdinPipeInspect()
- func (m *CommandRunnerMock) MinimockWait(timeout mm_time.Duration)
- func (mmStdinPipe *CommandRunnerMock) StdinPipe() (w1 io.WriteCloser, err error)
- func (mmStdinPipe *CommandRunnerMock) StdinPipeAfterCounter() uint64
- func (mmStdinPipe *CommandRunnerMock) StdinPipeBeforeCounter() uint64
- type CommandRunnerMockCombinedOutputExpectation
- type CommandRunnerMockCombinedOutputResults
- type CommandRunnerMockStdinPipeExpectation
- type CommandRunnerMockStdinPipeResults
- type UsageHandlerMock
- func (mmCheck *UsageHandlerMock) Check(ctx context.Context, inputs []*structpb.Struct) (err error)
- func (mmCheck *UsageHandlerMock) CheckAfterCounter() uint64
- func (mmCheck *UsageHandlerMock) CheckBeforeCounter() uint64
- func (mmCollect *UsageHandlerMock) Collect(ctx context.Context, inputs []*structpb.Struct, outputs []*structpb.Struct) (err error)
- func (mmCollect *UsageHandlerMock) CollectAfterCounter() uint64
- func (mmCollect *UsageHandlerMock) CollectBeforeCounter() uint64
- func (m *UsageHandlerMock) MinimockCheckDone() bool
- func (m *UsageHandlerMock) MinimockCheckInspect()
- func (m *UsageHandlerMock) MinimockCollectDone() bool
- func (m *UsageHandlerMock) MinimockCollectInspect()
- func (m *UsageHandlerMock) MinimockFinish()
- func (m *UsageHandlerMock) MinimockWait(timeout mm_time.Duration)
- type UsageHandlerMockCheckExpectation
- type UsageHandlerMockCheckParamPtrs
- type UsageHandlerMockCheckParams
- type UsageHandlerMockCheckResults
- type UsageHandlerMockCollectExpectation
- type UsageHandlerMockCollectParamPtrs
- type UsageHandlerMockCollectParams
- type UsageHandlerMockCollectResults
- type WriteCloserMock
- func (mmClose *WriteCloserMock) Close() (err error)
- func (mmClose *WriteCloserMock) CloseAfterCounter() uint64
- func (mmClose *WriteCloserMock) CloseBeforeCounter() uint64
- func (m *WriteCloserMock) MinimockCloseDone() bool
- func (m *WriteCloserMock) MinimockCloseInspect()
- func (m *WriteCloserMock) MinimockFinish()
- func (m *WriteCloserMock) MinimockWait(timeout mm_time.Duration)
- func (m *WriteCloserMock) MinimockWriteDone() bool
- func (m *WriteCloserMock) MinimockWriteInspect()
- func (mmWrite *WriteCloserMock) Write(p []byte) (n int, err error)
- func (mmWrite *WriteCloserMock) WriteAfterCounter() uint64
- func (mmWrite *WriteCloserMock) WriteBeforeCounter() uint64
- type WriteCloserMockCloseExpectation
- type WriteCloserMockCloseResults
- type WriteCloserMockWriteExpectation
- type WriteCloserMockWriteParamPtrs
- type WriteCloserMockWriteParams
- type WriteCloserMockWriteResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandRunnerMock ¶
type CommandRunnerMock struct { CombinedOutputMock mCommandRunnerMockCombinedOutput StdinPipeMock mCommandRunnerMockStdinPipe // contains filtered or unexported fields }
CommandRunnerMock implements document.commandRunner
func NewCommandRunnerMock ¶
func NewCommandRunnerMock(t minimock.Tester) *CommandRunnerMock
NewCommandRunnerMock returns a mock for document.commandRunner
func (*CommandRunnerMock) CombinedOutput ¶
func (mmCombinedOutput *CommandRunnerMock) CombinedOutput() (ba1 []byte, err error)
CombinedOutput implements document.commandRunner
func (*CommandRunnerMock) CombinedOutputAfterCounter ¶
func (mmCombinedOutput *CommandRunnerMock) CombinedOutputAfterCounter() uint64
CombinedOutputAfterCounter returns a count of finished CommandRunnerMock.CombinedOutput invocations
func (*CommandRunnerMock) CombinedOutputBeforeCounter ¶
func (mmCombinedOutput *CommandRunnerMock) CombinedOutputBeforeCounter() uint64
CombinedOutputBeforeCounter returns a count of CommandRunnerMock.CombinedOutput invocations
func (*CommandRunnerMock) MinimockCombinedOutputDone ¶
func (m *CommandRunnerMock) MinimockCombinedOutputDone() bool
MinimockCombinedOutputDone returns true if the count of the CombinedOutput invocations corresponds the number of defined expectations
func (*CommandRunnerMock) MinimockCombinedOutputInspect ¶
func (m *CommandRunnerMock) MinimockCombinedOutputInspect()
MinimockCombinedOutputInspect logs each unmet expectation
func (*CommandRunnerMock) MinimockFinish ¶
func (m *CommandRunnerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CommandRunnerMock) MinimockStdinPipeDone ¶
func (m *CommandRunnerMock) MinimockStdinPipeDone() bool
MinimockStdinPipeDone returns true if the count of the StdinPipe invocations corresponds the number of defined expectations
func (*CommandRunnerMock) MinimockStdinPipeInspect ¶
func (m *CommandRunnerMock) MinimockStdinPipeInspect()
MinimockStdinPipeInspect logs each unmet expectation
func (*CommandRunnerMock) MinimockWait ¶
func (m *CommandRunnerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*CommandRunnerMock) StdinPipe ¶
func (mmStdinPipe *CommandRunnerMock) StdinPipe() (w1 io.WriteCloser, err error)
StdinPipe implements document.commandRunner
func (*CommandRunnerMock) StdinPipeAfterCounter ¶
func (mmStdinPipe *CommandRunnerMock) StdinPipeAfterCounter() uint64
StdinPipeAfterCounter returns a count of finished CommandRunnerMock.StdinPipe invocations
func (*CommandRunnerMock) StdinPipeBeforeCounter ¶
func (mmStdinPipe *CommandRunnerMock) StdinPipeBeforeCounter() uint64
StdinPipeBeforeCounter returns a count of CommandRunnerMock.StdinPipe invocations
type CommandRunnerMockCombinedOutputExpectation ¶
type CommandRunnerMockCombinedOutputExpectation struct { Counter uint64 // contains filtered or unexported fields }
CommandRunnerMockCombinedOutputExpectation specifies expectation struct of the commandRunner.CombinedOutput
type CommandRunnerMockCombinedOutputResults ¶
type CommandRunnerMockCombinedOutputResults struct {
// contains filtered or unexported fields
}
CommandRunnerMockCombinedOutputResults contains results of the commandRunner.CombinedOutput
type CommandRunnerMockStdinPipeExpectation ¶
type CommandRunnerMockStdinPipeExpectation struct { Counter uint64 // contains filtered or unexported fields }
CommandRunnerMockStdinPipeExpectation specifies expectation struct of the commandRunner.StdinPipe
type CommandRunnerMockStdinPipeResults ¶
type CommandRunnerMockStdinPipeResults struct {
// contains filtered or unexported fields
}
CommandRunnerMockStdinPipeResults contains results of the commandRunner.StdinPipe
type UsageHandlerMock ¶
type UsageHandlerMock struct { CheckMock mUsageHandlerMockCheck CollectMock mUsageHandlerMockCollect // contains filtered or unexported fields }
UsageHandlerMock implements base.UsageHandler
func NewUsageHandlerMock ¶
func NewUsageHandlerMock(t minimock.Tester) *UsageHandlerMock
NewUsageHandlerMock returns a mock for base.UsageHandler
func (*UsageHandlerMock) CheckAfterCounter ¶
func (mmCheck *UsageHandlerMock) CheckAfterCounter() uint64
CheckAfterCounter returns a count of finished UsageHandlerMock.Check invocations
func (*UsageHandlerMock) CheckBeforeCounter ¶
func (mmCheck *UsageHandlerMock) CheckBeforeCounter() uint64
CheckBeforeCounter returns a count of UsageHandlerMock.Check invocations
func (*UsageHandlerMock) Collect ¶
func (mmCollect *UsageHandlerMock) Collect(ctx context.Context, inputs []*structpb.Struct, outputs []*structpb.Struct) (err error)
Collect implements base.UsageHandler
func (*UsageHandlerMock) CollectAfterCounter ¶
func (mmCollect *UsageHandlerMock) CollectAfterCounter() uint64
CollectAfterCounter returns a count of finished UsageHandlerMock.Collect invocations
func (*UsageHandlerMock) CollectBeforeCounter ¶
func (mmCollect *UsageHandlerMock) CollectBeforeCounter() uint64
CollectBeforeCounter returns a count of UsageHandlerMock.Collect invocations
func (*UsageHandlerMock) MinimockCheckDone ¶
func (m *UsageHandlerMock) MinimockCheckDone() bool
MinimockCheckDone returns true if the count of the Check invocations corresponds the number of defined expectations
func (*UsageHandlerMock) MinimockCheckInspect ¶
func (m *UsageHandlerMock) MinimockCheckInspect()
MinimockCheckInspect logs each unmet expectation
func (*UsageHandlerMock) MinimockCollectDone ¶
func (m *UsageHandlerMock) MinimockCollectDone() bool
MinimockCollectDone returns true if the count of the Collect invocations corresponds the number of defined expectations
func (*UsageHandlerMock) MinimockCollectInspect ¶
func (m *UsageHandlerMock) MinimockCollectInspect()
MinimockCollectInspect logs each unmet expectation
func (*UsageHandlerMock) MinimockFinish ¶
func (m *UsageHandlerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UsageHandlerMock) MinimockWait ¶
func (m *UsageHandlerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type UsageHandlerMockCheckExpectation ¶
type UsageHandlerMockCheckExpectation struct { Counter uint64 // contains filtered or unexported fields }
UsageHandlerMockCheckExpectation specifies expectation struct of the UsageHandler.Check
func (*UsageHandlerMockCheckExpectation) Then ¶
func (e *UsageHandlerMockCheckExpectation) Then(err error) *UsageHandlerMock
Then sets up UsageHandler.Check return parameters for the expectation previously defined by the When method
type UsageHandlerMockCheckParamPtrs ¶
type UsageHandlerMockCheckParamPtrs struct {
// contains filtered or unexported fields
}
UsageHandlerMockCheckParamPtrs contains pointers to parameters of the UsageHandler.Check
type UsageHandlerMockCheckParams ¶
type UsageHandlerMockCheckParams struct {
// contains filtered or unexported fields
}
UsageHandlerMockCheckParams contains parameters of the UsageHandler.Check
type UsageHandlerMockCheckResults ¶
type UsageHandlerMockCheckResults struct {
// contains filtered or unexported fields
}
UsageHandlerMockCheckResults contains results of the UsageHandler.Check
type UsageHandlerMockCollectExpectation ¶
type UsageHandlerMockCollectExpectation struct { Counter uint64 // contains filtered or unexported fields }
UsageHandlerMockCollectExpectation specifies expectation struct of the UsageHandler.Collect
func (*UsageHandlerMockCollectExpectation) Then ¶
func (e *UsageHandlerMockCollectExpectation) Then(err error) *UsageHandlerMock
Then sets up UsageHandler.Collect return parameters for the expectation previously defined by the When method
type UsageHandlerMockCollectParamPtrs ¶
type UsageHandlerMockCollectParamPtrs struct {
// contains filtered or unexported fields
}
UsageHandlerMockCollectParamPtrs contains pointers to parameters of the UsageHandler.Collect
type UsageHandlerMockCollectParams ¶
type UsageHandlerMockCollectParams struct {
// contains filtered or unexported fields
}
UsageHandlerMockCollectParams contains parameters of the UsageHandler.Collect
type UsageHandlerMockCollectResults ¶
type UsageHandlerMockCollectResults struct {
// contains filtered or unexported fields
}
UsageHandlerMockCollectResults contains results of the UsageHandler.Collect
type WriteCloserMock ¶
type WriteCloserMock struct { CloseMock mWriteCloserMockClose WriteMock mWriteCloserMockWrite // contains filtered or unexported fields }
WriteCloserMock implements io.WriteCloser
func NewWriteCloserMock ¶
func NewWriteCloserMock(t minimock.Tester) *WriteCloserMock
NewWriteCloserMock returns a mock for io.WriteCloser
func (*WriteCloserMock) Close ¶
func (mmClose *WriteCloserMock) Close() (err error)
Close implements io.WriteCloser
func (*WriteCloserMock) CloseAfterCounter ¶
func (mmClose *WriteCloserMock) CloseAfterCounter() uint64
CloseAfterCounter returns a count of finished WriteCloserMock.Close invocations
func (*WriteCloserMock) CloseBeforeCounter ¶
func (mmClose *WriteCloserMock) CloseBeforeCounter() uint64
CloseBeforeCounter returns a count of WriteCloserMock.Close invocations
func (*WriteCloserMock) MinimockCloseDone ¶
func (m *WriteCloserMock) MinimockCloseDone() bool
MinimockCloseDone returns true if the count of the Close invocations corresponds the number of defined expectations
func (*WriteCloserMock) MinimockCloseInspect ¶
func (m *WriteCloserMock) MinimockCloseInspect()
MinimockCloseInspect logs each unmet expectation
func (*WriteCloserMock) MinimockFinish ¶
func (m *WriteCloserMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*WriteCloserMock) MinimockWait ¶
func (m *WriteCloserMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*WriteCloserMock) MinimockWriteDone ¶
func (m *WriteCloserMock) MinimockWriteDone() bool
MinimockWriteDone returns true if the count of the Write invocations corresponds the number of defined expectations
func (*WriteCloserMock) MinimockWriteInspect ¶
func (m *WriteCloserMock) MinimockWriteInspect()
MinimockWriteInspect logs each unmet expectation
func (*WriteCloserMock) Write ¶
func (mmWrite *WriteCloserMock) Write(p []byte) (n int, err error)
Write implements io.WriteCloser
func (*WriteCloserMock) WriteAfterCounter ¶
func (mmWrite *WriteCloserMock) WriteAfterCounter() uint64
WriteAfterCounter returns a count of finished WriteCloserMock.Write invocations
func (*WriteCloserMock) WriteBeforeCounter ¶
func (mmWrite *WriteCloserMock) WriteBeforeCounter() uint64
WriteBeforeCounter returns a count of WriteCloserMock.Write invocations
type WriteCloserMockCloseExpectation ¶
type WriteCloserMockCloseExpectation struct { Counter uint64 // contains filtered or unexported fields }
WriteCloserMockCloseExpectation specifies expectation struct of the WriteCloser.Close
type WriteCloserMockCloseResults ¶
type WriteCloserMockCloseResults struct {
// contains filtered or unexported fields
}
WriteCloserMockCloseResults contains results of the WriteCloser.Close
type WriteCloserMockWriteExpectation ¶
type WriteCloserMockWriteExpectation struct { Counter uint64 // contains filtered or unexported fields }
WriteCloserMockWriteExpectation specifies expectation struct of the WriteCloser.Write
func (*WriteCloserMockWriteExpectation) Then ¶
func (e *WriteCloserMockWriteExpectation) Then(n int, err error) *WriteCloserMock
Then sets up WriteCloser.Write return parameters for the expectation previously defined by the When method
type WriteCloserMockWriteParamPtrs ¶
type WriteCloserMockWriteParamPtrs struct {
// contains filtered or unexported fields
}
WriteCloserMockWriteParamPtrs contains pointers to parameters of the WriteCloser.Write
type WriteCloserMockWriteParams ¶
type WriteCloserMockWriteParams struct {
// contains filtered or unexported fields
}
WriteCloserMockWriteParams contains parameters of the WriteCloser.Write
type WriteCloserMockWriteResults ¶
type WriteCloserMockWriteResults struct {
// contains filtered or unexported fields
}
WriteCloserMockWriteResults contains results of the WriteCloser.Write