MCPcopy
hub / github.com/dgraph-io/dgraph / addMutationHelper

Function addMutationHelper

posting/list_test.go:75–86  ·  view source on GitHub ↗
(t *testing.T, l *List, edge *pb.DirectedEdge, op uint32, txn *Txn)

Source from the content-addressed store, hash-verified

73}
74
75func 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
88func (l *List) commitMutation(startTs, commitTs uint64) error {
89 l.Lock()

Callers 15

TestAddMutationFunction · 0.85
TestAddMutation_ValueFunction · 0.85
TestAddMutation_jchiu1Function · 0.85
TestAddMutation_DelSetFunction · 0.85
TestAddMutation_DelReadFunction · 0.85
TestAddMutation_jchiu2Function · 0.85
TestAddMutation_jchiu3Function · 0.85
TestAddMutation_mrjn1Function · 0.85
TestReadSingleValueFunction · 0.85
TestRollupMaxTsIsSetFunction · 0.85
TestMillionFunction · 0.85

Calls 2

FatalfFunction · 0.92
addMutationMethod · 0.80

Tested by

no test coverage detected