(dag *graph.DAG, obj client.Object, action *Action)
| 147 | } |
| 148 | |
| 149 | func (r *realGraphClient) IsAction(dag *graph.DAG, obj client.Object, action *Action) bool { |
| 150 | vertex := r.FindMatchedVertex(dag, obj) |
| 151 | if vertex == nil { |
| 152 | return false |
| 153 | } |
| 154 | v, _ := vertex.(*ObjectVertex) |
| 155 | if action == nil { |
| 156 | return v.Action == nil |
| 157 | } |
| 158 | if v.Action == nil { |
| 159 | return false |
| 160 | } |
| 161 | return *v.Action == *action |
| 162 | } |
| 163 | |
| 164 | func (r *realGraphClient) DependOn(dag *graph.DAG, object client.Object, dependency ...client.Object) { |
| 165 | objectVertex := r.FindMatchedVertex(dag, object) |
nothing calls this directly
no test coverage detected