Documentation ¶
Overview ¶
Package testutil contains utility functions for test.
Index ¶
- func CreateBlamelist(nCommits int) *pb.BlameList
- func CreateCompileFailure(c context.Context, t testing.TB, fb *model.LuciFailedBuild) *model.CompileFailure
- func CreateCompileFailureAnalysis(c context.Context, t testing.TB, id int64, cf *model.CompileFailure) *model.CompileFailureAnalysis
- func CreateCompileFailureAnalysisAnalysisChain(c context.Context, t testing.TB, bbid int64, project string, analysisID int64) (*model.LuciFailedBuild, *model.CompileFailure, *model.CompileFailureAnalysis)
- func CreateHeuristicAnalysis(c context.Context, t testing.TB, cfa *model.CompileFailureAnalysis) *model.CompileHeuristicAnalysis
- func CreateHeuristicSuspect(c context.Context, t testing.TB, ha *model.CompileHeuristicAnalysis, ...) *model.Suspect
- func CreateLUCIFailedBuild(c context.Context, t testing.TB, id int64, project string) *model.LuciFailedBuild
- func CreateNthSectionAnalysis(c context.Context, t testing.TB, cfa *model.CompileFailureAnalysis) *model.CompileNthSectionAnalysis
- func CreateNthSectionSuspect(c context.Context, t testing.TB, nsa *model.CompileNthSectionAnalysis) *model.Suspect
- func CreateSuspect(ctx context.Context, t testing.TB, option *SuspectCreationOption) *model.Suspect
- func CreateTestFailure(ctx context.Context, t testing.TB, option *TestFailureCreationOption) *model.TestFailure
- func CreateTestFailureAnalysis(ctx context.Context, t testing.TB, option *TestFailureAnalysisCreationOption) *model.TestFailureAnalysis
- func CreateTestNthSectionAnalysis(ctx context.Context, t testing.TB, ...) *model.TestNthSectionAnalysis
- func CreateTestSingleRerun(ctx context.Context, t testing.TB, option *TestSingleRerunCreationOption) *model.TestSingleRerun
- func UpdateIndices(c context.Context)
- type SuspectCreationOption
- type TestFailureAnalysisCreationOption
- type TestFailureCreationOption
- type TestNthSectionAnalysisCreationOption
- type TestSingleRerunCreationOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlamelist ¶
func CreateCompileFailure ¶
func CreateCompileFailure(c context.Context, t testing.TB, fb *model.LuciFailedBuild) *model.CompileFailure
func CreateCompileFailureAnalysis ¶
func CreateCompileFailureAnalysis(c context.Context, t testing.TB, id int64, cf *model.CompileFailure) *model.CompileFailureAnalysis
func CreateCompileFailureAnalysisAnalysisChain ¶
func CreateCompileFailureAnalysisAnalysisChain(c context.Context, t testing.TB, bbid int64, project string, analysisID int64) (*model.LuciFailedBuild, *model.CompileFailure, *model.CompileFailureAnalysis)
func CreateHeuristicAnalysis ¶
func CreateHeuristicAnalysis(c context.Context, t testing.TB, cfa *model.CompileFailureAnalysis) *model.CompileHeuristicAnalysis
func CreateHeuristicSuspect ¶
func CreateHeuristicSuspect(c context.Context, t testing.TB, ha *model.CompileHeuristicAnalysis, status model.SuspectVerificationStatus) *model.Suspect
func CreateLUCIFailedBuild ¶
func CreateNthSectionAnalysis ¶
func CreateNthSectionAnalysis(c context.Context, t testing.TB, cfa *model.CompileFailureAnalysis) *model.CompileNthSectionAnalysis
func CreateNthSectionSuspect ¶
func CreateSuspect ¶
func CreateTestFailure ¶
func CreateTestFailure(ctx context.Context, t testing.TB, option *TestFailureCreationOption) *model.TestFailure
func CreateTestFailureAnalysis ¶
func CreateTestFailureAnalysis(ctx context.Context, t testing.TB, option *TestFailureAnalysisCreationOption) *model.TestFailureAnalysis
func CreateTestNthSectionAnalysis ¶
func CreateTestNthSectionAnalysis(ctx context.Context, t testing.TB, option *TestNthSectionAnalysisCreationOption) *model.TestNthSectionAnalysis
func CreateTestSingleRerun ¶
func CreateTestSingleRerun(ctx context.Context, t testing.TB, option *TestSingleRerunCreationOption) *model.TestSingleRerun
func UpdateIndices ¶
Types ¶
type SuspectCreationOption ¶
type TestFailureAnalysisCreationOption ¶
type TestFailureAnalysisCreationOption struct { ID int64 Project string Bucket string Builder string TestFailureKey *datastore.Key StartCommitHash string EndCommitHash string FailedBuildID int64 Priority int32 Status pb.AnalysisStatus RunStatus pb.AnalysisRunStatus CreateTime time.Time StartTime time.Time EndTime time.Time VerifiedCulpritKey *datastore.Key }
type TestFailureCreationOption ¶
type TestFailureCreationOption struct { ID int64 Project string Variant map[string]string IsPrimary bool Analysis *model.TestFailureAnalysis Ref *pb.SourceRef TestID string VariantHash string StartHour time.Time RefHash string StartPosition int64 EndPosition int64 StartFailureRate float64 EndFailureRate float64 IsDiverged bool }
type TestSingleRerunCreationOption ¶
type TestSingleRerunCreationOption struct { ID int64 Status pb.RerunStatus AnalysisKey *datastore.Key Type model.RerunBuildType TestResult model.RerunTestResults NthSectionAnalysisKey *datastore.Key CulpritKey *datastore.Key CreateTime time.Time StartTime time.Time ReportTime time.Time EndTime time.Time BuildStatus bbpb.Status GitilesCommit *bbpb.GitilesCommit }
Click to show internal directories.
Click to hide internal directories.