()
| 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() { |
nothing calls this directly
no test coverage detected