component-manager carries ~34 one-function-per-variant enum-mapping tests -- the kind the table helper was built for. rms.rs (to_rms_power_operation, map_rms_firmware_job_state, map_rms_switch_system_image_job_state, aggregate_firmware_job_states), nsm.rs (map_nsm_update_state, to_nsm_component), and psm.rs (map_psm_fw_state, map_vendor) each map one input variant to one expected output, once per #[test].
Collapse each mapping into a single scenarios! / value_scenarios! table (one row per variant), per file.
Scope
crates/component-manager/src/rms.rs, nsm.rs, psm.rs -- the per-variant mapping test clusters.
- Secondary (optional):
BackendTlsConfig::resolve_* in config.rs (three functions sharing a (cert_dir, explicit_path) -> Option<path> signature) -> one named-struct check_cases table.
Acceptance
- Same coverage, one table per mapping; no production change.
cargo test -p component-manager green; cargo clippy --all-features + cargo make format-nightly clean.
Size: M-L
Part of #2692.
component-managercarries ~34 one-function-per-variant enum-mapping tests -- the kind the table helper was built for.rms.rs(to_rms_power_operation,map_rms_firmware_job_state,map_rms_switch_system_image_job_state,aggregate_firmware_job_states),nsm.rs(map_nsm_update_state,to_nsm_component), andpsm.rs(map_psm_fw_state,map_vendor) each map one input variant to one expected output, once per#[test].Collapse each mapping into a single
scenarios!/value_scenarios!table (one row per variant), per file.Scope
crates/component-manager/src/rms.rs,nsm.rs,psm.rs-- the per-variant mapping test clusters.BackendTlsConfig::resolve_*inconfig.rs(three functions sharing a(cert_dir, explicit_path) -> Option<path>signature) -> one named-structcheck_casestable.Acceptance
cargo test -p component-managergreen;cargo clippy --all-features+cargo make format-nightlyclean.Size: M-L
Part of #2692.