Home
last modified time | relevance | path

Searched refs:test_map (Results 1 – 1 of 1) sorted by relevance

/development/tools/external_crates/crate_health/src/
Dname_and_version_map.rs174 let mut test_map = BTreeMap::new(); in try_name_version_map_from_iter() localVariable
176 test_map.insert_or_error(NameAndVersion::try_from_str(name, version)?, val)?; in try_name_version_map_from_iter()
178 Ok(test_map) in try_name_version_map_from_iter()
191 let mut test_map: BTreeMap<NameAndVersion, String> = BTreeMap::new(); in test_name_and_version_map_empty() localVariable
195 assert_eq!(test_map.num_crates(), 0); in test_name_and_version_map_empty()
196 assert!(!test_map.contains_key(&nvp as &dyn NamedAndVersioned)); in test_name_and_version_map_empty()
197 assert!(!test_map.contains_name("foo")); 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()
205 let mut test_map = try_name_version_map_from_iter([ in test_name_and_version_map_nonempty() localVariable
[all …]