(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestInvalidArrayAllocation(t *testing.T) { |
| 57 | f := NewArrayFreelist() |
| 58 | // page 0 and 1 are reserved for meta pages, so they should never be free pages. |
| 59 | ids := []common.Pgid{1} |
| 60 | f.Init(ids) |
| 61 | require.Panics(t, func() { |
| 62 | f.Allocate(common.Txid(1), 1) |
| 63 | }) |
| 64 | } |
| 65 | |
| 66 | func Test_Freelist_Array_Rollback(t *testing.T) { |
| 67 | f := newTestArrayFreelist() |
nothing calls this directly
no test coverage detected