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

Function severity_mapping_error

src/mago.rs:805–811  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803
804 #[test]
805 fn severity_mapping_error() {
806 let content = "<?php\nfoo();\n";
807 let file_path = "/tmp/test.php";
808 let json = make_issue_json("Error", "err-code", "Error msg", "/tmp/test.php", 6, 11);
809 let diags = parse_mago_json(&json, content, file_path, "mago-lint").unwrap();
810 assert_eq!(diags[0].severity, Some(DiagnosticSeverity::ERROR));
811 }
812
813 #[test]
814 fn severity_mapping_warning() {

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