Documentation ¶
Index ¶
- type FakeClient
- func (c *FakeClient) CreateReport(repo string, flaky []string, writeFile bool) (*jsonreport.Report, error)
- func (c *FakeClient) GetFlakyTestReport(jobName, repo string, buildID int) ([]jsonreport.Report, error)
- func (c *FakeClient) GetFlakyTests(jobName, repo string) ([]string, error)
- func (c *FakeClient) GetReportRepos(jobName string) ([]string, error)
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.
Click to show internal directories.
Click to hide internal directories.