fakejsonreport

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

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

FakeClient fakes the jsonreport client. All file IO is redirected to data array

func Initialize

func Initialize() (*FakeClient, error)

Initialize wraps prow's init, which must be called before any other prow functions are used.

func (*FakeClient) CreateReport

func (c *FakeClient) CreateReport(repo string, flaky []string, writeFile bool) (*jsonreport.Report, error)

CreateReport generates a flaky report for a given repository, and optionally writes it to disk.

func (*FakeClient) GetFlakyTestReport

func (c *FakeClient) GetFlakyTestReport(jobName, repo string, buildID int) ([]jsonreport.Report, error)

GetFlakyTestReport collects flaky test reports from the given buildID and repo. Use repo = "" to get reports from all repositories, and buildID = -1 to get the most recent report

func (*FakeClient) GetFlakyTests

func (c *FakeClient) GetFlakyTests(jobName, repo string) ([]string, error)

GetFlakyTests gets the latest flaky tests from the given repo

func (*FakeClient) GetReportRepos

func (c *FakeClient) GetReportRepos(jobName string) ([]string, error)

GetReportRepos gets all of the repositories where we collect flaky tests.

Jump to

Keyboard shortcuts

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