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

Function severity_mapping_note

src/mago.rs:823–829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

821
822 #[test]
823 fn severity_mapping_note() {
824 let content = "<?php\nfoo();\n";
825 let file_path = "/tmp/test.php";
826 let json = make_issue_json("Note", "note-code", "Note msg", "/tmp/test.php", 6, 11);
827 let diags = parse_mago_json(&json, content, file_path, "mago-lint").unwrap();
828 assert_eq!(diags[0].severity, Some(DiagnosticSeverity::INFORMATION));
829 }
830
831 #[test]
832 fn severity_mapping_help() {

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