core

package
v0.0.0-...-6f38d97 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package core defines several basic report processors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpReportsAsCLF

type DumpReportsAsCLF struct {
	// Writer is where the report summaries should be written to.  If nil, we'll
	// save the summaries as the value of the TestResult annotation.
	Writer io.Writer
}

DumpReportsAsCLF is a ReportProcessor that prints out a summary of each report using a format not unlike Apache's CLF access.log format.

func (DumpReportsAsCLF) ProcessReports

func (d DumpReportsAsCLF) ProcessReports(ctx context.Context, batch *collector.ReportBatch)

ProcessReports prints out a summary of each report in the batch.

type KeepNelReports

type KeepNelReports struct{}

KeepNelReports is a pipeline processor that throws away any non-NEL reports.

func (KeepNelReports) ProcessReports

func (KeepNelReports) ProcessReports(ctx context.Context, batch *collector.ReportBatch)

ProcessReports throws away any non-NEL reports.

Jump to

Keyboard shortcuts

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