()
| 578 | |
| 579 | #[test] |
| 580 | fn parse_empty_result() { |
| 581 | let json = r#"{"totals":{"errors":0,"file_errors":0},"files":{},"errors":[]}"#; |
| 582 | let path = Path::new("/project/src/Foo.php"); |
| 583 | let diags = parse_phpstan_json(json, path).unwrap(); |
| 584 | assert!(diags.is_empty()); |
| 585 | } |
| 586 | |
| 587 | #[test] |
| 588 | fn parse_file_errors() { |
nothing calls this directly
no test coverage detected