()
| 699 | |
| 700 | #[test] |
| 701 | fn removes_eol_ignore_comment() { |
| 702 | let content = "<?php\necho $x; // @phpstan-ignore variable.undefined\n"; |
| 703 | let edit = build_remove_ignore_edit(content, 1, 1, Some("variable.undefined")); |
| 704 | let edit = edit.unwrap(); |
| 705 | // Should remove the comment but keep "echo $x;" |
| 706 | assert_eq!(edit.range.start.line, 1); |
| 707 | assert_eq!(edit.new_text, ""); |
| 708 | // The code part "echo $x;" should be preserved (8 chars). |
| 709 | assert_eq!(edit.range.start.character, 8); |
| 710 | } |
| 711 | |
| 712 | #[test] |
| 713 | fn removes_single_id_from_multi_id_ignore() { |
nothing calls this directly
no test coverage detected