Documentation ¶
Overview ¶
Package insert implements functions to insert rows for testing purposes.
Index ¶
- func Artifact(invID invocations.ID, parentID, artID string, ...) *spanner.Mutation
- func FinalizedInvocationWithInclusions(id invocations.ID, extraValues map[string]interface{}, ...) []*spanner.Mutation
- func Inclusion(including, included invocations.ID) *spanner.Mutation
- func Invocation(id invocations.ID, state pb.Invocation_State, ...) *spanner.Mutation
- func InvocationWithInclusions(id invocations.ID, state pb.Invocation_State, ...) []*spanner.Mutation
- func MakeTestResults(invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*pb.TestResult
- func TestExonerations(invID invocations.ID, testID string, variant *pb.Variant, count int) []*spanner.Mutation
- func TestResultMessages(trs []*pb.TestResult) []*spanner.Mutation
- func TestResults(invID, testID string, v *pb.Variant, statuses ...pb.TestStatus) []*spanner.Mutation
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.