(t *testing.T, l *List, edge *pb.DirectedEdge, op uint32, txn *Txn)
| 73 | } |
| 74 | |
| 75 | func addMutationHelper(t *testing.T, l *List, edge *pb.DirectedEdge, op uint32, txn *Txn) { |
| 76 | switch op { |
| 77 | case Del: |
| 78 | edge.Op = pb.DirectedEdge_DEL |
| 79 | case Set: |
| 80 | edge.Op = pb.DirectedEdge_SET |
| 81 | default: |
| 82 | x.Fatalf("Unhandled op: %v", op) |
| 83 | } |
| 84 | err := l.addMutation(context.Background(), txn, edge) |
| 85 | require.NoError(t, err) |
| 86 | } |
| 87 | |
| 88 | func (l *List) commitMutation(startTs, commitTs uint64) error { |
| 89 | l.Lock() |
no test coverage detected