(t *testing.T)
| 389 | } |
| 390 | |
| 391 | func TestGetWithDir(t *testing.T) { |
| 392 | st := New() |
| 393 | defer close(st.Ops) |
| 394 | st.Ops <- Op{1, MustEncodeSet("/x", "a", Clobber)} |
| 395 | st.Ops <- Op{2, MustEncodeSet("/y", "b", Clobber)} |
| 396 | sync(st, 2) |
| 397 | dents, rev := st.Get("/") |
| 398 | assert.Equal(t, Dir, rev) |
| 399 | sort.SortStrings(dents) |
| 400 | assert.Equal(t, []string{"x", "y"}, dents) |
| 401 | } |
| 402 | |
| 403 | func TestStatWithDir(t *testing.T) { |
| 404 | st := New() |
nothing calls this directly
no test coverage detected