aggregate

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByElapsed

func ByElapsed(cases []testjson.TestCase, fn func(times []time.Duration) time.Duration) []testjson.TestCase

ByElapsed maps all test cases by name, and if there is more than one instance of a TestCase, uses fn to select the elapsed time for the group.

All cases are assumed to be part of the same package.

func Slowest

func Slowest(exec *testjson.Execution, threshold time.Duration) []testjson.TestCase

Slowest returns a slice of all tests with an elapsed time greater than threshold. The slice is sorted by Elapsed time in descending order (slowest test first).

If there are multiple runs of a TestCase, all of them will be represented by a single TestCase with the median elapsed time in the returned slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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