(name: &str)
| 22 | } |
| 23 | |
| 24 | fn fixture(name: &str) -> Value { |
| 25 | let path = vector_dir().join(format!("{name}.json")); |
| 26 | let raw = fs::read_to_string(&path).unwrap_or_else(|e| panic!("read {path:?}: {e}")); |
| 27 | serde_json::from_str(&raw).unwrap_or_else(|e| panic!("parse {path:?}: {e}")) |
| 28 | } |
| 29 | |
| 30 | /// Parse the fixture's input the way any caller receiving JSON does, canonicalize |
| 31 | /// it, and require the exact bytes. |
no test coverage detected