output

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(results []*comparer.Result, includePassing bool, tweaks []*config.QueryTweak)

JSON produces JSON-based output for a number of query results.

func TSV

func TSV(results []*comparer.Result, _ bool, _ []*config.QueryTweak)

TSV produces tab separated values output for a number of query results.

func Text

func Text(results []*comparer.Result, includePassing bool, tweaks []*config.QueryTweak)

Text produces text-based output for a number of query results.

Types

type JSONResult

type JSONResult struct {
	TotalResults   int                  `json:"totalResults"`
	Results        []*comparer.Result   `json:"results,omitempty"`
	IncludePassing bool                 `json:"includePassing"`
	QueryTweaks    []*config.QueryTweak `json:"queryTweaks,omitempty"`
}

JSONResult is the JSON output format.

type Outputter

type Outputter func(results []*comparer.Result, includePassing bool, tweaks []*config.QueryTweak)

An Outputter outputs a number of test results.

func HTML

func HTML(tplFile string) (Outputter, error)

HTML produces HTML output for a number of query results.

Jump to

Keyboard shortcuts

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