package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
NewTestDependencies returns a TestState populated with the provided options.
ReadCommentsFromDB reads all comments from system.comments table and return them as a CommentCache.
ReadCurrentDatabaseFromDB reads the current database from tdb.
ReadDescriptorsFromDB reads the set of descriptors from tdb.
ReadNamespaceFromDB reads the namespace entries from tdb.
ReadSessionDataFromDB reads the session data out of tdb and then allows the caller to modify it with the passed function.
ReadZoneConfigsFromDB reads the zone configs from tdb.
WithBackfiller injects a Backfiller to be provided by the TestState.
WithBackfillerTracker injects a BackfillerTracker to be provided by the TestState.
WithComments injects sets comment cache of TestState to the provided value.
WithCurrentDatabase sets the TestState current database to the provided value.
WithDescriptors sets the TestState descriptors to the provided value.
WithMerger injects a Merger to be provided by the TestState.
WithNamespace sets the TestState namespace to the provided value.
WithSessionData sets the TestState sessiondata to the provided value.
WithStatements sets the TestState statement to the provided value.
WithSystemDatabaseDescriptor adds the system database descriptor to the catalog.
WithTestingKnobs sets the TestState testing knobs to the provided value.
WithZoneConfigs sets the TestStates zone config map to the provided value.
# Structs
TestState is a backing struct used to implement all schema changer dependencies, like scbuild.Dependencies or scexec.Dependencies, for the purpose of facilitating end-to-end testing of the declarative schema changer.
# Interfaces
Option configures the TestState.