func TestKubeletConfigurationPathFields(t *testing.T) { … } // allPrimitiveFieldPaths returns the set of field paths in type `tp`, rooted at `path`. // It recursively descends into the definition of type `tp` accumulating paths to primitive leaf fields or paths in `skipRecurseList`. func allPrimitiveFieldPaths(t *testing.T, skipRecurseList sets.Set[string], tp reflect.Type, path *field.Path) sets.Set[string] { … } type foo … type bar … func TestAllPrimitiveFieldPaths(t *testing.T) { … } var kubeletConfigurationPathFieldPaths … var kubeletConfigurationNonPathFieldPaths …