(t *testing.T)
| 413 | } |
| 414 | |
| 415 | func TestStatWithFile(t *testing.T) { |
| 416 | st := New() |
| 417 | defer close(st.Ops) |
| 418 | st.Ops <- Op{1, MustEncodeSet("/x", "123", Clobber)} |
| 419 | sync(st, 1) |
| 420 | |
| 421 | ln, rev := st.Stat("/x") |
| 422 | assert.Equal(t, int64(1), rev) |
| 423 | assert.Equal(t, int32(3), ln) |
| 424 | } |
| 425 | |
| 426 | func TestStatForMissing(t *testing.T) { |
| 427 | st := New() |
nothing calls this directly
no test coverage detected