flakeytests

package
v2.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 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"`
	PullRequestURL string `json:"pull_request_url,omitempty"`
	Repository     string `json:"repository"`
	Type           string `json:"event_type"`
	RunURL         string `json:"run_url,omitempty"`
}

func GetGithubMetadata

func GetGithubMetadata(repo string, eventName string, sha string, path string, runID 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