func TestDriveInitDefaultFeatureGates(t *testing.T) { … } func TestSetFeatureGatesDuringTest(t *testing.T) { … } func TestSetFeatureGatesDuringTestPanics(t *testing.T) { … } func TestOverridesForSetFeatureGatesDuringTest(t *testing.T) { … } type fakeFeatureGates … func (f *fakeFeatureGates) Enabled(feature features.Feature) bool { … } func (f *fakeFeatureGates) Set(feature features.Feature, value bool) error { … } type readOnlyAlwaysDisabledFeatureGates … func (f *readOnlyAlwaysDisabledFeatureGates) Enabled(feature features.Feature) bool { … } type fakeT … func (t *fakeT) Name() string { … } func assertFeatureGatesType(t *testing.T, fg features.Gates) { … } func assertFunctionPanicsWithMessage(t *testing.T, f func(), fName, errMessage string) { … } func didFunctionPanic(f func()) (didPanic bool, panicMessage interface{ … }