Helper to build a `HashMap ` from `(&str, &str)` pairs.
(pairs: &[(&str, &str)])
| 5 | |
| 6 | /// Helper to build a `HashMap<String, PhpType>` from `(&str, &str)` pairs. |
| 7 | fn make_subs(pairs: &[(&str, &str)]) -> HashMap<String, PhpType> { |
| 8 | pairs |
| 9 | .iter() |
| 10 | .map(|(k, v)| (k.to_string(), PhpType::parse(v))) |
| 11 | .collect() |
| 12 | } |
| 13 | |
| 14 | #[test] |
| 15 | fn test_apply_substitution_direct() { |
no test coverage detected