(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestSnap(t *testing.T) { |
| 201 | st := New() |
| 202 | defer close(st.Ops) |
| 203 | mut := MustEncodeSet("/x", "a", Clobber) |
| 204 | st.Ops <- Op{1, mut} |
| 205 | <-st.Seqns // ensure it has been applied before grabbing the snapshot |
| 206 | |
| 207 | _, snap := st.Snap() |
| 208 | |
| 209 | root, ok := snap.(node) |
| 210 | assert.Equal(t, true, ok) |
| 211 | |
| 212 | exp, _ := emptyDir.apply(1, mut) |
| 213 | assert.Equal(t, exp, root) |
| 214 | } |
| 215 | |
| 216 | func TestApplyInOrder(t *testing.T) { |
| 217 | st := New() |
nothing calls this directly
no test coverage detected