Searched refs:nvp (Results 1 – 2 of 2) sorted by relevance
/development/tools/external_crates/crate_health/src/ |
D | name_and_version.rs | 149 let nvp = NameAndVersionRef::new("foo", &version); in test_name_version_ref() localVariable 150 assert_eq!(nvp.name(), "foo"); in test_name_version_ref() 151 assert_eq!(nvp.version().to_string(), "2.3.4"); in test_name_version_ref() 152 assert!(nvp.is_upgradable_to(&NameAndVersionRef::new("foo", &compat1)), "Patch update"); in test_name_version_ref() 154 nvp.is_upgradable_to(&NameAndVersionRef::new("foo", &compat2)), in test_name_version_ref() 158 !nvp.is_upgradable_to(&NameAndVersionRef::new("foo", &incompat)), in test_name_version_ref() 161 assert!(!nvp.is_upgradable_to(&NameAndVersionRef::new("foo", &older)), "Downgrade"); in test_name_version_ref() 162 assert!(!nvp.is_upgradable_to(&NameAndVersionRef::new("bar", &compat1)), "Different name"); in test_name_version_ref() 173 let nvp = NameAndVersion::new("foo".to_string(), version); in test_name_and_version() localVariable 174 assert_eq!(nvp.name(), "foo"); in test_name_and_version() [all …]
|
D | name_and_version_map.rs | 193 let nvp = NameAndVersionRef::new("foo", &v); in test_name_and_version_map_empty() localVariable 196 assert!(!test_map.contains_key(&nvp as &dyn NamedAndVersioned)); in test_name_and_version_map_empty() 198 assert!(test_map.get(&nvp as &dyn NamedAndVersioned).is_none()); in test_name_and_version_map_empty() 199 assert!(test_map.get_mut(&nvp as &dyn NamedAndVersioned).is_none()); in test_name_and_version_map_empty()
|