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

Function parse_empty_result

src/phpcs.rs:468–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467 #[test]
468 fn parse_empty_result() {
469 let json = r#"{"totals":{"errors":0,"warnings":0,"fixable":0},"files":{}}"#;
470 let path = Path::new("/project/src/Foo.php");
471 let diags = parse_phpcs_json(json, path).unwrap();
472 assert!(diags.is_empty());
473 }
474
475 #[test]
476 fn parse_file_messages() {

Callers

nothing calls this directly

Calls 2

parse_phpcs_jsonFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected