package testing
import "k8s.io/client-go/features/testing"
Index ¶
Functions ¶
func SetFeatureDuringTest ¶
func SetFeatureDuringTest(tb testing.TB, feature clientfeatures.Feature, featureValue bool)
SetFeatureDuringTest sets the specified feature to the specified value for the duration of the test.
Example use:
clientfeaturestesting.SetFeatureDuringTest(t, clientfeatures.WatchListClient, true)
Source Files ¶
features.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.