Documentation ¶
Overview ¶
Package insert implements functions to insert rows for testing purposes.
Index ¶
- Constants
- func Artifact(invID invocations.ID, parentID, artID string, extraValues map[string]any) *spanner.Mutation
- func Checkpoint(ctx context.Context, project, resourceID, processID, uniquifier string) *spanner.Mutation
- func FinalizedInvocationWithInclusions(id invocations.ID, extraValues map[string]any, included ...invocations.ID) []*spanner.Mutation
- func Inclusion(including, included invocations.ID) *spanner.Mutation
- func Invocation(id invocations.ID, state pb.Invocation_State, extraValues map[string]any) *spanner.Mutation
- func InvocationWithInclusions(id invocations.ID, state pb.Invocation_State, extraValues map[string]any, ...) []*spanner.Mutation
- func MakeTestMetadataRow(project, testID, subRealm string, refHash []byte) *testmetadata.TestMetadataRow
- func MakeTestResults(invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*pb.TestResult
- func TestExonerations(invID invocations.ID, testID string, variant *pb.Variant, ...) []*spanner.Mutation
- func TestMetadataRows(rows []*testmetadata.TestMetadataRow) []*spanner.Mutation
- func TestResultMessages(t testing.TB, trs []*pb.TestResult) []*spanner.Mutation
- func TestResults(t testing.TB, invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*spanner.Mutation
Constants ¶
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 ¶
TestResultMessages returns spanner mutations to insert test results
Types ¶
This section is empty.