Documentation ¶
Overview ¶
Package protoutil contains the utility functions to convert to protobuf.
Index ¶
- func CulpritActionsForSuspect(suspect *model.Suspect) []*pb.CulpritAction
- func CulpritToPb(ctx context.Context, culprit *model.Suspect, nsa *model.TestNthSectionAnalysis, ...) (c *pb.TestCulprit, err error)
- func NthSectionAnalysisToPb(ctx context.Context, tfa *model.TestFailureAnalysis, ...) (*pb.TestNthSectionAnalysisResult, error)
- func TestFailureAnalysisToPb(ctx context.Context, tfa *model.TestFailureAnalysis, tfaMask *mask.Mask) (analysis *pb.TestAnalysis, err error)
- func TestFailureBundleToPb(ctx context.Context, bundle *model.TestFailureBundle, mask *mask.Mask) []*pb.TestFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CulpritActionsForSuspect ¶
func CulpritActionsForSuspect(suspect *model.Suspect) []*pb.CulpritAction
func CulpritToPb ¶
func NthSectionAnalysisToPb ¶
func NthSectionAnalysisToPb(ctx context.Context, tfa *model.TestFailureAnalysis, nsa *model.TestNthSectionAnalysis, sourceRef *pb.SourceRef, nsaMask *mask.Mask) (*pb.TestNthSectionAnalysisResult, error)
func TestFailureAnalysisToPb ¶
func TestFailureAnalysisToPb(ctx context.Context, tfa *model.TestFailureAnalysis, tfaMask *mask.Mask) (analysis *pb.TestAnalysis, err error)
TestFailureAnalysisToPb converts model.TestFailureAnalysis to pb.TestAnalysis
func TestFailureBundleToPb ¶
func TestFailureBundleToPb(ctx context.Context, bundle *model.TestFailureBundle, mask *mask.Mask) []*pb.TestFailure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.