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

Function severity_mapping_help

src/mago.rs:832–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

830
831 #[test]
832 fn severity_mapping_help() {
833 let content = "<?php\nfoo();\n";
834 let file_path = "/tmp/test.php";
835 let json = make_issue_json("Help", "help-code", "Help msg", "/tmp/test.php", 6, 11);
836 let diags = parse_mago_json(&json, content, file_path, "mago-lint").unwrap();
837 assert_eq!(diags[0].severity, Some(DiagnosticSeverity::HINT));
838 }
839
840 // ── parse invalid JSON ──────────────────────────────────────────
841

Callers

nothing calls this directly

Calls 3

make_issue_jsonFunction · 0.85
parse_mago_jsonFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected