MCPcopy Create free account
hub / github.com/dadgar/onecache / TestCollapseLogDeleteValue

Function TestCollapseLogDeleteValue

onecache/replicator_test.go:375–386  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

373}
374
375func TestCollapseLogDeleteValue(t *testing.T) {
376 in := []replicationTask{task_DELETE, task_DIRTY_VALUE}
377 var exp replicationTask = task_DIRTY_VALUE
378 task, err := collapseOpLog(in)
379 if err != nil {
380 t.Errorf("collapseOpLog(%v) returned error: %v", err)
381 }
382
383 if task != exp {
384 t.Errorf("collapseOpLog(%v) returned %v; want", task, exp)
385 }
386}
387
388func TestCollapseLogeDeleteDelete(t *testing.T) {
389 in := []replicationTask{task_DELETE, task_DELETE}

Callers

nothing calls this directly

Calls 1

collapseOpLogFunction · 0.85

Tested by

no test coverage detected