Documentation ¶
Overview ¶
Package outputtest provides functionalities for unit testing output package.
Index ¶
- type Sink
- func (s *Sink) EntityEnd(ei *protocol.Entity, skipReasons []string, timingLog *timing.Log) error
- func (s *Sink) EntityError(ei *protocol.Entity, e *protocol.Error) error
- func (s *Sink) EntityLog(ei *protocol.Entity, msg string) error
- func (s *Sink) EntityStart(ei *protocol.Entity, outDir string) error
- func (s *Sink) ExternalEvent(res *protocol.RunTestsResponse) error
- func (s *Sink) ReadAll() []protocol.Event
- func (s *Sink) RunLog(msg string) error
- func (s *Sink) StackOperation(ctx context.Context, req *protocol.StackOperationRequest) (*protocol.StackOperationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink is fake output sink for unit testing. It implements output.Stream .
func (*Sink) EntityError ¶
EntityError implements output.Stream.
func (*Sink) EntityStart ¶
EntityStart implements output.Stream.
func (*Sink) ExternalEvent ¶
func (s *Sink) ExternalEvent(res *protocol.RunTestsResponse) error
ExternalEvent implements output.Stream.
func (*Sink) StackOperation ¶
func (s *Sink) StackOperation(ctx context.Context, req *protocol.StackOperationRequest) (*protocol.StackOperationResponse, error)
StackOperation implements output.Stream.
Click to show internal directories.
Click to hide internal directories.