pub fn assert_annotations_preserved(
writer: &RegistryWriter,
module: &ScannedModule,
registry: &Registry,
)Expand description
Register module via writer into registry and assert its governance
annotations (requires_approval, destructive) survive get_definition.
Panics on a dropped or changed field, so it reads naturally inside a
#[test]. module.annotations must be Some(..) — that is what the
round-trip verifies.