captor

package
v0.118.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Reporter{}

Default is the default, global instance of Reporter. Use judiciously.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	TestResults []report.TestResult
	// contains filtered or unexported fields
}

Reporter is a simple implementation for report.Reporter, a no-output reporter for capturing test results.

func (*Reporter) Add

func (r *Reporter) Add(t report.TestResult)

Add adds the test result.

func (*Reporter) ArtifactRequirements

func (r *Reporter) ArtifactRequirements() []report.ArtifactType

ArtifactRequirements returns a list of artifact types are this reporter requires to create a proper report.

func (*Reporter) GetAll

func (r *Reporter) GetAll() []report.TestResult

GetAll returns all added test results, unless they've been purged via Reset().

func (*Reporter) Render

func (r *Reporter) Render()

Render does nothing.

func (*Reporter) Reset

func (r *Reporter) Reset()

Reset resets the reporter to its initial state. This action will delete all test results.

Jump to

Keyboard shortcuts

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