MCPcopy Index your code
hub / github.com/cockroachdb/errors / TestingWithEmptyMigrationRegistry

Function TestingWithEmptyMigrationRegistry

errbase/migrations.go:119–123  ·  view source on GitHub ↗

TestingWithEmptyMigrationRegistry is intended for use by tests.

()

Source from the content-addressed store, hash-verified

117
118// TestingWithEmptyMigrationRegistry is intended for use by tests.
119func TestingWithEmptyMigrationRegistry() (restore func()) {
120 save := backwardRegistry
121 backwardRegistry = map[TypeKey]TypeKey{}
122 return func() { backwardRegistry = save }
123}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…