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

Function TestCollapseLogValueTouch

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

Source from the content-addressed store, hash-verified

347}
348
349func TestCollapseLogValueTouch(t *testing.T) {
350 in := []replicationTask{task_DIRTY_VALUE, task_TOUCH}
351 var exp replicationTask = task_DIRTY_VALUE
352 task, err := collapseOpLog(in)
353 if err != nil {
354 t.Errorf("collapseOpLog(%v) returned error: %v", err)
355 }
356
357 if task != exp {
358 t.Errorf("collapseOpLog(%v) returned %v; want", task, exp)
359 }
360}
361
362func TestCollapseLogValueDelete(t *testing.T) {
363 in := []replicationTask{task_DIRTY_VALUE, task_DELETE}

Callers

nothing calls this directly

Calls 1

collapseOpLogFunction · 0.85

Tested by

no test coverage detected