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

Function TestIncrement

dgraph/cmd/increment/increment_test.go:155–165  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

153}
154
155func TestIncrement(t *testing.T) {
156 dg := setup(t)
157 val := increment(t, dg)
158 t.Logf("Increment stage done. Got value: %d\n", val)
159 read(t, dg, val)
160 t.Logf("Read stage done with value: %d\n", val)
161 val = increment(t, dg)
162 t.Logf("Increment stage done. Got value: %d\n", val)
163 read(t, dg, val)
164 t.Logf("Read stage done with value: %d\n", val)
165}
166
167func TestBestEffort(t *testing.T) {
168 dg := setup(t)

Callers

nothing calls this directly

Calls 3

incrementFunction · 0.85
setupFunction · 0.70
readFunction · 0.70

Tested by

no test coverage detected