github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/base/testing_knobs.go (about) 1 // Copyright 2016 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 package base 12 13 // ModuleTestingKnobs is an interface for testing knobs for a submodule. 14 type ModuleTestingKnobs interface { 15 // ModuleTestingKnobs is a dummy function. 16 ModuleTestingKnobs() 17 } 18 19 // TestingKnobs contains facilities for controlling various parts of the 20 // system for testing. 21 type TestingKnobs struct { 22 Store ModuleTestingKnobs 23 KVClient ModuleTestingKnobs 24 SQLExecutor ModuleTestingKnobs 25 SQLLeaseManager ModuleTestingKnobs 26 SQLSchemaChanger ModuleTestingKnobs 27 GCJob ModuleTestingKnobs 28 PGWireTestingKnobs ModuleTestingKnobs 29 SQLMigrationManager ModuleTestingKnobs 30 DistSQL ModuleTestingKnobs 31 SQLEvalContext ModuleTestingKnobs 32 RegistryLiveness ModuleTestingKnobs 33 Server ModuleTestingKnobs 34 TenantTestingKnobs ModuleTestingKnobs 35 }