Skip to content

Commit

Permalink
(feat) internal/civisibility: add Known Tests feature and refactor EF…
Browse files Browse the repository at this point in the history
…D logic
  • Loading branch information
tonyredondo committed Feb 3, 2025
1 parent 7265b80 commit a5d6d39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type MockClient struct {
SendCoveragePayloadFunc func(ciTestCovPayload io.Reader) error
SendCoveragePayloadWithFormatFunc func(ciTestCovPayload io.Reader, format string) error
GetSettingsFunc func() (*net.SettingsResponseData, error)
GetEarlyFlakeDetectionDataFunc func() (*net.KnownTestsResponseData, error)
GetKnownTestsFunc func() (*net.KnownTestsResponseData, error)
GetCommitsFunc func(localCommits []string) ([]string, error)
SendPackFilesFunc func(commitSha string, packFiles []string) (bytes int64, err error)
GetSkippableTestsFunc func() (correlationId string, skippables map[string]map[string][]net.SkippableResponseDataAttributes, err error)
Expand All @@ -92,7 +92,7 @@ func (m *MockClient) GetSettings() (*net.SettingsResponseData, error) {
}

func (m *MockClient) GetKnownTests() (*net.KnownTestsResponseData, error) {
return m.GetEarlyFlakeDetectionDataFunc()
return m.GetKnownTestsFunc()
}

func (m *MockClient) GetCommits(localCommits []string) ([]string, error) {
Expand Down

0 comments on commit a5d6d39

Please sign in to comment.