Skip to main content

assert_field_part_ids

Function assert_field_part_ids 

Source
pub fn assert_field_part_ids(
    meta: FieldMeta,
    expected_description_ids: &[&str],
    expected_error_ids: &[&str],
)
Expand description

Asserts the description and error ids currently registered in field metadata.

Call this once after the registry’s description and error parts mount, then again with empty expected slices after they drop. Id order must match mount order because ARIA id references are rendered in registration order.

§Panics

Panics when the metadata’s ARIA id references differ from the expected ids.