insert

package
v0.0.0-...-128afb8 Latest Latest
Warning

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

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

Documentation

Overview

Package insert implements functions to insert rows for testing purposes.

Index

Constants

View Source
const TestRealm = "testproject:testrealm"

TestRealm is the default realm used for invocation mutations returned by Invocation().

Variables

This section is empty.

Functions

func Artifact

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

Artifact returns a Spanner mutation to insert an artifact.

func Checkpoint

func Checkpoint(ctx context.Context, project, resourceID, processID, uniquifier string) *spanner.Mutation

Checkpoint returns a Spanner mutation to insert an checkpoint.

func FinalizedInvocationWithInclusions

func FinalizedInvocationWithInclusions(id invocations.ID, extraValues map[string]any, 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]any) *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]any, included ...invocations.ID) []*spanner.Mutation

InvocationWithInclusions returns mutations to insert an invocation with inclusions.

func MakeTestMetadataRow

func MakeTestMetadataRow(project, testID, subRealm string, refHash []byte) *testmetadata.TestMetadataRow

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, reasons ...pb.ExonerationReason) []*spanner.Mutation

TestExonerations returns Spanner mutations to insert test exonerations.

func TestMetadataRows

func TestMetadataRows(rows []*testmetadata.TestMetadataRow) []*spanner.Mutation

func TestResultMessages

func TestResultMessages(t testing.TB, trs []*pb.TestResult) []*spanner.Mutation

TestResultMessages returns spanner mutations to insert test results

func TestResults

func TestResults(t testing.TB, 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