insert

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package insert implements functions to insert rows for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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