()
| 75 | } |
| 76 | |
| 77 | func (v *ObjectVertex) String() string { |
| 78 | if v.Action == nil { |
| 79 | return fmt.Sprintf("{obj:%T, name: %s, action: nil}", v.Obj, v.Obj.GetName()) |
| 80 | } |
| 81 | return fmt.Sprintf("{obj:%T, name: %s, action: %v}", v.Obj, v.Obj.GetName(), *v.Action) |
| 82 | } |
| 83 | |
| 84 | func NewObjectVertex(oldObj, newObj client.Object, action *Action, opts ...GraphOption) *ObjectVertex { |
| 85 | graphOpts := &GraphOptions{} |
no test coverage detected