(
events: Vec<(NaiveDateTime, Event)>,
)
| 36 | } |
| 37 | |
| 38 | fn load_reference() -> serde_json::Value { |
| 39 | let path = |
| 40 | Path::new(env!("CARGO_MANIFEST_DIR")).join("../../tests/fixtures/labeling/reference.json"); |
| 41 | serde_json::from_str(&std::fs::read_to_string(path).unwrap()).unwrap() |
| 42 | } |
| 43 | |
| 44 | fn parse_reference_ts(value: &serde_json::Value) -> Option<NaiveDateTime> { |
| 45 | value.as_str().map(|s| NaiveDateTime::parse_from_str(s, "%Y-%m-%d %H:%M:%S%.f").unwrap()) |
no outgoing calls
no test coverage detected