MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / parse_empty_result

Function parse_empty_result

src/phpstan.rs:580–585  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

parse_phpstan_jsonFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected