package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

Command sctestgen generates test files for sctest.

# Functions

BackupRollbacks tests that the schema changer can handle being backed up any time during any rollback of a failed schema change.
BackupRollbacksMixedVersion is like BackupRollbacks but in a mixed-version cluster which is upgraded prior to restoring the backups.
BackupSuccess tests that the schema changer can handle being backed up any time during a successful schema change.
BackupSuccessMixedVersion is like BackupSuccess but in a mixed-version cluster which is upgraded prior to restoring the backups.
DecomposeToElements exercises the descriptor-to-element decomposition functionality in the form of a data-driven test.
EndToEndSideEffects is a data-driven test runner that executes DDL statements in the declarative schema changer injected with test dependencies and compares the accumulated side effects logs with expected results from the data-driven test file.
ExecuteWithDMLInjection tests that the schema changer behaviour is sane once we start injecting DML statements into execution.
GenerateSchemaChangeCorpus executes each post commit stage of a given set of statements and writes them into a corpus file.
MakePlanExplainer is a PlanExplainer constructor.
Pause tests that the schema changer can handle being paused and resumed correctly.
PauseMixedVersion is like Pause but in a mixed-version cluster which gets upgraded while the job is paused.
Rollback tests that the schema changer job rolls back properly.

# Constants

OldVersionKey is the version key used by the WithMixedVersion method in the TestServerFactory interface.

# Structs

PlanExplainer makes it easy to store a declarative schema changer plan EXPLAIN (DDL) diagram in a BeforeStage testing knob and load it later on to decorate failing test assertions.
SingleNodeTestClusterFactory is the vanilla implementation of the TestServerFactory interface.

# Interfaces

TestServerFactory constructs test clusters for declarative schema changer end-to-end tests.