ClearedEdges returns all edge names that were cleared in this mutation.
()
| 12458 | |
| 12459 | // ClearedEdges returns all edge names that were cleared in this mutation. |
| 12460 | func (m *ShareMutation) ClearedEdges() []string { |
| 12461 | edges := make([]string, 0, 2) |
| 12462 | if m.cleareduser { |
| 12463 | edges = append(edges, share.EdgeUser) |
| 12464 | } |
| 12465 | if m.clearedfile { |
| 12466 | edges = append(edges, share.EdgeFile) |
| 12467 | } |
| 12468 | return edges |
| 12469 | } |
| 12470 | |
| 12471 | // EdgeCleared returns a boolean which indicates if the edge with the given name |
| 12472 | // was cleared in this mutation. |
nothing calls this directly
no outgoing calls
no test coverage detected