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 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
¶
Click to show internal directories.
Click to hide internal directories.