You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test state transitions (for example, in a k8s controller) it's useful to mutate values rather than completely generate new structs. A brand new struct is likely too different and would mis coverage that modifying a few fields would give.
For example, we could test when a Pod IP changes or a label selector is added.
I think this could use similar logic to the existing fuzzStruct but just pick an element (struct field, map key, or array index) to mutate instead of setting all elements.
To test state transitions (for example, in a k8s controller) it's useful to mutate values rather than completely generate new structs. A brand new struct is likely too different and would mis coverage that modifying a few fields would give.
For example, we could test when a Pod IP changes or a label selector is added.
I think this could use similar logic to the existing fuzzStruct but just pick an element (struct field, map key, or array index) to mutate instead of setting all elements.
WDYT? Maybe related to istio/istio#43445
The text was updated successfully, but these errors were encountered: