(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestWalkingOwnershipGraph(t *testing.T) { |
| 88 | obj, err := dynClient.Resource(schema.GroupVersionResource{"", "v1", "pods"}).Namespace(os.Args[1]).Get(ctx, os.Args[2], metav1.GetOptions{}) |
| 89 | if err != nil { |
| 90 | t.Fatal(err) |
| 91 | } |
| 92 | nodes := WalkOwnershipGraph(ctx, dynClient, mapper, &labelsMapper{}, obj) |
| 93 | for _, node := range nodes { |
| 94 | fmt.Printf("%#v\n", node) |
| 95 | } |
| 96 | } |
nothing calls this directly
no test coverage detected