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