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

Function TestCollapseLogValueDelete

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

Source from the content-addressed store, hash-verified

360}
361
362func TestCollapseLogValueDelete(t *testing.T) {
363 in := []replicationTask{task_DIRTY_VALUE, task_DELETE}
364 var exp replicationTask = task_DELETE
365 task, err := collapseOpLog(in)
366 if err != nil {
367 t.Errorf("collapseOpLog(%v) returned error: %v", err)
368 }
369
370 if task != exp {
371 t.Errorf("collapseOpLog(%v) returned %v; want", task, exp)
372 }
373}
374
375func TestCollapseLogDeleteValue(t *testing.T) {
376 in := []replicationTask{task_DELETE, task_DIRTY_VALUE}

Callers

nothing calls this directly

Calls 1

collapseOpLogFunction · 0.85

Tested by

no test coverage detected