flakeytests

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigString

func DigString(mp map[string]interface{}, path []string) (string, error)

Types

type Context

type Context struct {
	CommitSHA      string `json:"commit_sha,omitempty"`
	PullRequestURL string `json:"pull_request_url,omitempty"`
}

func GetGithubMetadata

func GetGithubMetadata(sha string, path string) Context

type LokiReporter

type LokiReporter struct {
	// contains filtered or unexported fields
}

func NewLokiReporter

func NewLokiReporter(host, auth, command string, ctx Context) *LokiReporter

func (*LokiReporter) Report

func (l *LokiReporter) Report(flakeyTests map[string]map[string]struct{}) error

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(readers []io.Reader, reporter reporter, numReruns int) *Runner

func (*Runner) Run

func (r *Runner) Run() error

type TestEvent added in v2.6.0

type TestEvent struct {
	Time    time.Time
	Action  string
	Package string
	Test    string
	Elapsed float64 // seconds
	Output  string
}

Directories

Path Synopsis
cmd
runner command

Jump to

Keyboard shortcuts

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