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

Function dependencies_and_dependents_are_consistent

src/tests.rs:60–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59 #[test]
60 fn dependencies_and_dependents_are_consistent() {
61 for &id in FeatureId::ALL {
62 for &dependency in id.dependencies() {
63 assert!(
64 dependency.dependents().contains(&id),
65 "{:?} lists {:?} as a dependency, but {:?} does not list {:?} as a dependent",
66 id,
67 dependency,
68 dependency,
69 id
70 );
71 }
72 }
73 }
74
75 #[test]
76 fn no_feature_depends_on_itself() {

Callers

nothing calls this directly

Calls 1

dependenciesMethod · 0.80

Tested by

no test coverage detected