Skip to main content

assert_no_new_objects

Function assert_no_new_objects 

Source
pub fn assert_no_new_objects(app: &App, snapshot: &ObjectSnapshot)
Expand description

Fails if app holds more objects of some type, made at some site, than it did at snapshot, listing each such type and creation site with how many more. Run it after a checkpoint, so that what was let go is freed.

ยงPanics

If objects made since the snapshot are still held beyond what it held.