outputtest

package
v0.0.0-...-b5d9cbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package outputtest provides functionalities for unit testing output package.

Index

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 NewSink

func NewSink() *Sink

NewSink creates a Sink.

func (*Sink) EntityEnd

func (s *Sink) EntityEnd(ei *protocol.Entity, skipReasons []string, timingLog *timing.Log) error

EntityEnd implements output.Stream.

func (*Sink) EntityError

func (s *Sink) EntityError(ei *protocol.Entity, e *protocol.Error) error

EntityError implements output.Stream.

func (*Sink) EntityLog

func (s *Sink) EntityLog(ei *protocol.Entity, level logging.Level, ts time.Time, msg string) error

EntityLog implements output.Stream.

func (*Sink) EntityStart

func (s *Sink) EntityStart(ei *protocol.Entity, outDir string) error

EntityStart implements output.Stream.

func (*Sink) ExternalEvent

func (s *Sink) ExternalEvent(res *protocol.RunTestsResponse) error

ExternalEvent implements output.Stream.

func (*Sink) ReadAll

func (s *Sink) ReadAll() []protocol.Event

ReadAll reads all control messages written to the sink.

func (*Sink) RunLog

func (s *Sink) RunLog(level logging.Level, ts time.Time, msg string) error

RunLog implements output.Stream.

func (*Sink) StackOperation

StackOperation implements output.Stream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL