(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestReadsDoNotCallPush(t *testing.T) { |
| 96 | push := func(m []interface{}) { |
| 97 | t.Errorf("Unexpected call to push!") |
| 98 | } |
| 99 | |
| 100 | u := NewUndeltaStore(push, testUndeltaKeyFunc) |
| 101 | |
| 102 | // These should not call push. |
| 103 | _ = u.List() |
| 104 | _, _, _ = u.Get(testUndeltaObject{"a", ""}) |
| 105 | } |
| 106 | |
| 107 | func TestReplaceCallsPush(t *testing.T) { |
| 108 | mkObj := func(name string, val interface{}) testUndeltaObject { |
nothing calls this directly
no test coverage detected