Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntegrationTestContext ¶
IntegrationTestContext returns a context for testing code that talks to Spanner and uses tsmon. Skips the test if integration tests are not enabled.
Tests that use Spanner must not call t.Parallel().
func MustApply ¶
MustApply applies the mutations to the spanner client in the context. Asserts that application succeeds. Returns the commit timestamp.
func SpannerTestContext ¶
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().
func SpannerTestMain ¶
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().
func TestingContext ¶
TestingContext returns a context to be used in tests.
Types ¶
This section is empty.