Asserts that the map contains `key` with value `val`.
(map: &mut Map<N, M>, key: K, mut val: V)
| 249 | |
| 250 | /// Asserts that the map contains `key` with value `val`. |
| 251 | fn assert_key_eq<const N: usize, const M: usize>(map: &mut Map<N, M>, key: K, mut val: V) { |
| 252 | assert!(map.contains_key(&key)); |
| 253 | assert_eq!(map.get(&key), Some(&val)); |
| 254 | assert_eq!(map.get_mut(&key), Some(&mut val)); |
| 255 | } |
| 256 | |
| 257 | /// Asserts that the map does not contain `key`. |
| 258 | fn assert_key_none<const N: usize, const M: usize>(map: &mut Map<N, M>, key: K) { |
no outgoing calls
no test coverage detected
searching dependent graphs…