(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestNodeApplySet(t *testing.T) { |
| 10 | k, v, seqn, rev := "x", "a", int64(1), int64(1) |
| 11 | p := "/" + k |
| 12 | m := MustEncodeSet(p, v, Clobber) |
| 13 | n, e := emptyDir.apply(seqn, m) |
| 14 | exp := node{"", Dir, map[string]node{k: {v, rev, nil}}} |
| 15 | assert.Equal(t, exp, n) |
| 16 | assert.Equal(t, Event{seqn, p, v, rev, m, nil, n}, e) |
| 17 | } |
| 18 | |
| 19 | func TestNodeApplyDel(t *testing.T) { |
| 20 | k, seqn, rev := "x", int64(1), int64(1) |
nothing calls this directly
no test coverage detected