1package home
23import(4"gno.land/p/g1lnkytfqcjwllws63gvf0mv9yt04aswy4y9amhm/upgradeable/v0"5"gno.land/p/nt/avl/v0"6)78// Test hooks. Realm globals live for the whole test binary, so every test9// that reads Render or Manifest starts from a known tree and a fresh proxy.1011// ResetForTest clears all realm state.12funcResetForTest(){13 slots = avl.NewTree()14 rev =015 lastHeight =016 proxy = upgradeable.New(upgradeable.NewAddrAuthority(Admin))17}1819// SeedForTest writes a slot without the authority check.20funcSeedForTest(slug, body string){21 rev++22 slots.Set(slug,&Slot{Body: body, Rev: rev, Height:0})23}2425// ReservedSlugsForTest exposes the reserved names.26funcReservedSlugsForTest()[]string{return reservedSlugs }27