Documentation
¶
Index ¶
- func BackendTest(t *testing.T, setup func(options ...backend.BackendOption) TestBackend, ...)
- func EndToEndBackendTest(t *testing.T, setup func(options ...backend.BackendOption) TestBackend, ...)
- func SQLAtomicityTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB))
- func SQLCorruptionTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB), ...)
- func SQLFailureTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB))
- func SQLMutationTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB))
- func SQLRepositoryTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB), dialect string)
- func SQLTableFaultTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB))
- type CustomError
- type TestBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackendTest ¶
func BackendTest(t *testing.T, setup func(options ...backend.BackendOption) TestBackend, teardown func(b TestBackend))
func EndToEndBackendTest ¶
func EndToEndBackendTest(t *testing.T, setup func(options ...backend.BackendOption) TestBackend, teardown func(b TestBackend))
func SQLAtomicityTest ¶ added in v1.1.0
SQLAtomicityTest makes individual tables unavailable after a task is leased. Every failed completion must leave the task and its original history intact.
func SQLCorruptionTest ¶ added in v1.1.0
func SQLCorruptionTest(t *testing.T, factory func(*testing.T) (diag.Backend, *sql.DB), activityReadsInstanceMetadata bool)
SQLCorruptionTest checks persisted data boundaries and rollback of failed polls.
func SQLFailureTest ¶ added in v1.1.0
SQLFailureTest verifies that unavailable storage is never reported as success. The factory supplies a real connection to an isolated database without tables.
func SQLMutationTest ¶ added in v1.1.0
SQLMutationTest checks lease identity and rollback across dependent writes.
Types ¶
type CustomError ¶
type CustomError struct {
// contains filtered or unexported fields
}
func (*CustomError) Error ¶
func (e *CustomError) Error() string
Source Files
¶
- backend.go
- backendtest.go
- e2e.go
- e2e_activity.go
- e2e_continueasnew.go
- e2e_diag.go
- e2e_failure_identity.go
- e2e_queues.go
- e2e_removal.go
- e2e_scope.go
- e2e_stats.go
- e2e_timer.go
- e2e_tracing.go
- sql_atomicity.go
- sql_corruption.go
- sql_failures.go
- sql_mutations.go
- sql_repositories.go
- sql_table_faults.go
- testcontextpropagator.go
Click to show internal directories.
Click to hide internal directories.