Back to

Package insert

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


Package insert implements functions to insert rows for testing purposes.


func Artifact

func Artifact(invID invocations.ID, parentID, artID string, extraValues map[string]interface{}) *spanner.Mutation

Artifact returns a Spanner mutation to insert an artifact.

func FinalizedInvocationWithInclusions

func FinalizedInvocationWithInclusions(id invocations.ID, extraValues map[string]interface{}, included ...invocations.ID) []*spanner.Mutation

FinalizedInvocationWithInclusions returns mutations to insert a finalized invocation with inclusions.

func Inclusion

func Inclusion(including, included invocations.ID) *spanner.Mutation

Inclusion returns a spanner mutation that inserts an inclusion.

func Invocation

func Invocation(id invocations.ID, state pb.Invocation_State, extraValues map[string]interface{}) *spanner.Mutation

Invocation returns a spanner mutation that inserts an invocation.

func InvocationWithInclusions

func InvocationWithInclusions(id invocations.ID, state pb.Invocation_State, extraValues map[string]interface{}, included ...invocations.ID) []*spanner.Mutation

InvocationWithInclusions returns mutations to insert an invocation with inclusions.

func MakeTestResults

func MakeTestResults(invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*pb.TestResult

MakeTestResults creates test results.

func TestExonerations

func TestExonerations(invID invocations.ID, testID string, variant *pb.Variant, count int) []*spanner.Mutation

TestExonerations returns Spanner mutations to insert test exonerations.

func TestResultMessages

func TestResultMessages(trs []*pb.TestResult) []*spanner.Mutation

TestResultMessages returns spanner mutations to insert test results

func TestResults

func TestResults(invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*spanner.Mutation

TestResults returns spanner mutations to insert test results

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier