testreport

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ReportTemplate = `` /* 733-byte string literal not displayed */

ReportTemplate ...

Variables

View Source
var ReportTable = template.Must(template.New("report").Parse(ReportTemplate))

ReportTable ...

Functions

func Coverage

func Coverage(tests []*testbackend.TestCase) float64

Coverage returns (100 - skipped *100 / tested)

func WriteCoverageReport

func WriteCoverageReport(w io.Writer, test []*testbackend.TestCase, t *template.Template)

WriteCoverageReport on w, the template should take []*testbackend.TestCase as pipeline

Types

type ByStatus

type ByStatus []*testbackend.TestCase

ByStatus is a wrapper to sort the tests by failure, success, skipped

func (ByStatus) Len

func (a ByStatus) Len() int

func (ByStatus) Less

func (a ByStatus) Less(i, j int) bool

func (ByStatus) Swap

func (a ByStatus) Swap(i, j int)

Jump to

Keyboard shortcuts

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