flakeytests

package
v2.6.0-clf-20230927 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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