MCPcopy Create free account
hub / github.com/RizeCrime/linuxblaster_control / all_feature_ids_are_registered

Function all_feature_ids_are_registered

src/tests.rs:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5 #[test]
6 fn all_feature_ids_are_registered() {
7 let features = features::all_features();
8 for &id in FeatureId::ALL {
9 assert!(
10 features.iter().any(|feature| feature.id == id),
11 "FeatureId::{:?} is in ALL but not in all_features()",
12 id
13 );
14 }
15 }
16
17 #[test]
18 fn no_duplicate_features() {

Callers

nothing calls this directly

Calls 1

all_featuresFunction · 0.85

Tested by

no test coverage detected