()
| 206 | |
| 207 | #[test] |
| 208 | fn details() { |
| 209 | let tf = parse_test( |
| 210 | "function %detail() { |
| 211 | ss10 = explicit_slot 13 |
| 212 | block0(v4: i32, v7: i32): |
| 213 | v10 = iadd v4, v7 |
| 214 | }", |
| 215 | ParseOptions::default(), |
| 216 | ) |
| 217 | .unwrap(); |
| 218 | let map = &tf.functions[0].1.map; |
| 219 | |
| 220 | assert_eq!(map.lookup_str("v0"), None); |
| 221 | assert_eq!(map.lookup_str("ss1"), None); |
| 222 | assert_eq!(map.lookup_str("ss10").unwrap().to_string(), "ss10"); |
| 223 | assert_eq!(map.lookup_str("block0").unwrap().to_string(), "block0"); |
| 224 | assert_eq!(map.lookup_str("v4").unwrap().to_string(), "v4"); |
| 225 | assert_eq!(map.lookup_str("v7").unwrap().to_string(), "v7"); |
| 226 | assert_eq!(map.lookup_str("v10").unwrap().to_string(), "v10"); |
| 227 | } |
| 228 | } |
nothing calls this directly
no test coverage detected