baselinetestvariant

package
v0.0.0-...-b314878 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package baselinetestvariant provides crud operations for baseline test variants.

Index

Constants

This section is empty.

Variables

View Source
var NotFound = errors.New("baseline test variant not found")

Functions

func Create

func Create(project, baselineID, testID, variantHash string) *spanner.Mutation

Create returns a Spanner mutation that creates the Baseline Test Variant, setting LastUpdated to spanner.CommitTimestamp

func InsertOrUpdate

func InsertOrUpdate(project, baselineID, testID, variantHash string) *spanner.Mutation

InsertOrUpdate returns a Spanner mutation for inserting/updating a baseline test variant

Types

type BaselineTestVariant

type BaselineTestVariant struct {
	Project     string
	BaselineID  string
	TestID      string
	VariantHash string
	LastUpdated time.Time
}

BaselineTestVariant captures a test variant mapped to a baseline identifier. BaselineTestVariants are used to when determining new tests.

func Read

func Read(ctx context.Context, project, baselineID, testID, variantHash string) (*BaselineTestVariant, error)

Read reads one baseline test variant from Spanner. If the invocation does not exist, NotFound error is returned.

Jump to

Keyboard shortcuts

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