(t *testing.T)
| 435 | } |
| 436 | |
| 437 | func TestFreelist_E2E_RollbackPanics(t *testing.T) { |
| 438 | freelist := newTestFreelist() |
| 439 | freelist.Init([]common.Pgid{5}) |
| 440 | requirePages(t, freelist, common.Pgids{5}, common.Pgids{}) |
| 441 | |
| 442 | _ = freelist.Allocate(common.Txid(5), 1) |
| 443 | require.Panics(t, func() { |
| 444 | // depending on the verification level, either should panic |
| 445 | freelist.Free(common.Txid(5), common.NewPage(5, common.LeafPageFlag, 0, 0)) |
| 446 | freelist.Rollback(5) |
| 447 | }) |
| 448 | } |
| 449 | |
| 450 | // tests the reloading from another physical page |
| 451 | func TestFreelist_E2E_Reload(t *testing.T) { |
nothing calls this directly
no test coverage detected