var overriddenFeaturesLock … var overriddenFeatures … func init() { … } type featureGatesSetter … // SetFeatureDuringTest sets the specified feature to the specified value for the duration of the test. // // Example use: // // clientfeaturestesting.SetFeatureDuringTest(t, clientfeatures.WatchListClient, true) func SetFeatureDuringTest(tb testing.TB, feature clientfeatures.Feature, featureValue bool) { … } func setFeatureDuringTestInternal(tb testing.TB, feature clientfeatures.Feature, featureValue bool) error { … } // copied from component-base/featuregate/testing func sameTestOrSubtest(tb testing.TB, testName string) bool { … }