- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FilterPath (0.17 sec)
-
operator/pkg/compare/compare.go
func genYamlIgnoreOpt(yamlStr string) (cmp.Option, error) { tree := make(map[string]any) if err := yaml.Unmarshal([]byte(yamlStr), &tree); err != nil { return nil, err } return cmp.FilterPath(func(curPath cmp.Path) bool { up := pathToStringList(curPath) treeNode, found, _ := tpath.Find(tree, up) return found && IsLeafNode(treeNode) }, cmp.Ignore()), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
Type: "Normal", Count: 1, Message: "Marking for deletion Pod test/test", Source: corev1.EventSource{Component: "nodeControllerTest"}, }, } if diff := cmp.Diff(want, recorder.Events, cmp.FilterPath(f, cmp.Ignore())); len(diff) > 0 { t.Errorf("emitPodDeletionEvent() returned data (-want,+got):\n%s", diff) } }) t.Run("emitCancelPodDeletionEvent", func(t *testing.T) { controller := &Controller{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0)