transform

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package transform contains tools for transforming CTP build to test_platform/analytics/TestPlanRun proto.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTPBuildResults

type CTPBuildResults interface {
	ToTestPlanRuns(context.Context) []*analytics.TestPlanRun
}

CTPBuildResults presents a CTP build containing multiple TestPlanRuns.

func LoadCTPBuildBucketResp

func LoadCTPBuildBucketResp(ctx context.Context, b *bbpb.Build, bb *result_flow.BuildbucketConfig) (CTPBuildResults, error)

LoadCTPBuildBucketResp loads a CTP build from Buildbucket response.

type TestRunnerBuild

type TestRunnerBuild interface {
	ToTestRun(context.Context) *analytics.TestRun
	ToTestCaseResults() []*analytics.TestCaseResult
}

TestRunnerBuild contains test build data and can be transformed to analytics.TestRun and analytics.TestCaseResult.

func LoadTestRunnerBuild

func LoadTestRunnerBuild(ctx context.Context, parentUID string, b *bbpb.Build, bb *result_flow.BuildbucketConfig) (TestRunnerBuild, error)

LoadTestRunnerBuild loads a Test Runner build from Buildbucket response.

Jump to

Keyboard shortcuts

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