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

Function severity_mapping_warning

src/mago.rs:814–820  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

812
813 #[test]
814 fn severity_mapping_warning() {
815 let content = "<?php\nfoo();\n";
816 let file_path = "/tmp/test.php";
817 let json = make_issue_json("Warning", "warn-code", "Warn msg", "/tmp/test.php", 6, 11);
818 let diags = parse_mago_json(&json, content, file_path, "mago-lint").unwrap();
819 assert_eq!(diags[0].severity, Some(DiagnosticSeverity::WARNING));
820 }
821
822 #[test]
823 fn severity_mapping_note() {

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