outputs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOptions added in v0.3.6

func FormatOptions() []string

func Outputers added in v0.0.5

func Outputers() []string

Outputers returns a sorted list of the names of the registered outputers.

func RegisterOutputer added in v0.0.5

func RegisterOutputer(name string, outputer Outputer, formatOptions []string)

RegisterOutputer registers a new outputer in the registry

Types

type Documentation added in v0.0.5

type Documentation struct {
	//FakeDuration will only be used for testing purposes
	FakeDuration time.Duration
}

Documentation represents the documentation output type

func (Documentation) Name added in v0.6.0

func (r Documentation) Name() string

Name returns the name

func (Documentation) Output added in v0.0.5

func (r Documentation) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

type JUnit added in v0.1.2

type JUnit struct {
	// contains filtered or unexported fields
}

JUnit represents the junit output type

func (JUnit) Name added in v0.6.0

func (r JUnit) Name() string

Name returns the name

func (JUnit) Output added in v0.1.2

func (r JUnit) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type Json added in v0.0.7

type Json struct {
	// FakeDuration will only be used for testing purposes
	FakeDuration time.Duration
}

Json represents the json output type

func (Json) Name added in v0.6.0

func (r Json) Name() string

Name returns the name

func (Json) Output added in v0.0.7

func (r Json) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type JsonOneline added in v0.3.4

type JsonOneline struct {
	// contains filtered or unexported fields
}

JsonOneline represents the JsonOneline output type

func (JsonOneline) Name added in v0.6.0

func (r JsonOneline) Name() string

Name returns the name

func (JsonOneline) Output added in v0.3.4

func (r JsonOneline) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type Nagios added in v0.0.12

type Nagios struct{}

Nagios represents the nagios output type

func (Nagios) Name added in v0.6.0

func (r Nagios) Name() string

Name returns the name

func (Nagios) Output added in v0.0.12

func (r Nagios) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type Outputer

type Outputer interface {
	Output(io.Writer, <-chan []resource.TestResult, time.Time, util.OutputConfig) int
	Name() string
}

Outputer is the interface which is used for the generation of the view

func GetOutputer added in v0.0.5

func GetOutputer(name string) Outputer

GetOutputer returns an outputer by name

type Rspecish

type Rspecish struct {
	//FakeDuration will only be needed for testing purposes
	FakeDuration time.Duration
}

Rspecish represents the rspecish output type

func (Rspecish) Name added in v0.6.0

func (r Rspecish) Name() string

Name returns the name

func (Rspecish) Output

func (r Rspecish) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type Silent added in v0.3.2

type Silent struct{}

Silent represents the silent output type

func (Silent) Name added in v0.6.0

func (r Silent) Name() string

Name returns the name

func (Silent) Output added in v0.3.2

func (r Silent) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

type Tap added in v0.1.2

type Tap struct{}

Tap represents the tap output type

func (Tap) Name added in v0.6.0

func (r Tap) Name() string

Name returns the name

func (Tap) Output added in v0.1.2

func (r Tap) Output(w io.Writer, results <-chan []resource.TestResult,
	startTime time.Time, outConfig util.OutputConfig) (exitCode int)

Output writes the actual output

Jump to

Keyboard shortcuts

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