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

Function parse_empty_result

src/mago.rs:794–800  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

792
793 #[test]
794 fn parse_empty_result() {
795 let content = "<?php\n";
796 let file_path = "/tmp/phpantom-mago-abc.php";
797 let json = r#"{"issues": []}"#;
798 let diags = parse_mago_json(json, content, file_path, "mago-lint").unwrap();
799 assert!(diags.is_empty());
800 }
801
802 // ── severity mapping ────────────────────────────────────────────
803

Callers

nothing calls this directly

Calls 2

parse_mago_jsonFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected