(t *testing.T)
| 373 | } |
| 374 | |
| 375 | func 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 | |
| 388 | func TestCollapseLogeDeleteDelete(t *testing.T) { |
| 389 | in := []replicationTask{task_DELETE, task_DELETE} |
nothing calls this directly
no test coverage detected