flakeytests

package
v2.9.1-automation-2024... Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 18 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 BaseMessage added in v2.9.0

type BaseMessage struct {
	MessageType string `json:"message_type"`
	Context
}

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(ctx context.Context, report *Report) error

type Report added in v2.9.0

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

func NewReport added in v2.9.0

func NewReport() *Report

func (*Report) HasFlakes added in v2.9.0

func (r *Report) HasFlakes() bool

func (*Report) IncPackagePanic added in v2.9.0

func (r *Report) IncPackagePanic(pkg string)

func (*Report) IncTest added in v2.9.0

func (r *Report) IncTest(pkg string, test string)

func (*Report) SetTest added in v2.9.0

func (r *Report) SetTest(pkg, test string, val int)

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(ctx context.Context) 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