Documentation ¶
Overview ¶
Package baselines captures baseline objects and basic interactions with them.
Index ¶
Constants ¶
const SpinUpDuration = 72 * time.Hour
Variables ¶
var NotFound = errors.New("baseline not found")
NotFound is the error returned by Read if the row could not be found.
Functions ¶
func Create ¶
Create returns a Spanner mutation that creates the baseline, setting CreationTime and LastUpdatedTime to spanner.CommitTimestamp
func MustParseBaselineName ¶
MustParseBaselineName parses a baseline name to project and baselineID. Panics if the name is invalid. Useful for situations when name was already validated.
func UpdateLastUpdatedTime ¶
UpdateLastUpdatedTime refreshes a Baseline's LastUpdatedTime.
Types ¶
type Baseline ¶
type Baseline struct { Project string BaselineID string LastUpdatedTime time.Time CreationTime time.Time }
Baseline captures baseline identifiers, which map to a set of test variants. When determining new tests, baselines that have been created within 3 days are considered to be in a spin up state, and will not be able to calculate new tests.
Directories ¶
Path | Synopsis |
---|---|
Package baselinetestvariant provides crud operations for baseline test variants.
|
Package baselinetestvariant provides crud operations for baseline test variants. |