const IntegrationTestEnvVar = "INTEGRATION_TESTS"
IntegrationTestEnvVar is the name of the environment variable which controls whether spanner tests are executed. The value must be "1" for integration tests to run.
CombineMutations concatenates mutations
InsertInclusion returns a spanner mutation that inserts an inclusion.
func InsertInvocation(id span.InvocationID, state pb.Invocation_State, updateToken string, ct time.Time) *spanner.Mutation
InsertInvocation returns a spanner mutation that inserts an invocation.
func InsertInvocationWithInclusions(id span.InvocationID, included ...span.InvocationID) *spanner.Mutation
InsertInvocationIncl returns mutations to insert an invocation with inclusions.
InsertTestResults returns spanner mutations to insert test results
MakeTestResults creates test results.
MustApply applies the mutations to the spanner client in the context. Asserts that application succeeds.
MustReadRow is a shortcut to do a single row read in a single transaction using the current client, and assert success.
RunIntegrationTests returns true if integration tests should run.
SpannerTestContext returns a context for testing code that talks to Spanner. Skips the test if integration tests are not enabled.
Tests that use Spanner must not call t.Parallel().
SpannerTestMain is a test main function for packages that have tests that talk to spanner. It creates/destroys a temporary spanner database before/after running tests.
This function never returns. Instead it calls os.Exit with the value returned by m.Run().
TestingContext returns a context to be used in tests.