Skip to content

Commit 4f0e2a0

Browse files
claudedeviantintegral
authored andcommitted
chore: ignore equivalent LessThan mutation in HarFileRepository::getIds
The mutation from strlen < 4 to strlen <= 4 is equivalent because any valid .har filename must be at least 5 characters (e.g., "x.har"). A 4-character file cannot have a .har extension, so it would be filtered by either the length check or the extension check regardless.
1 parent 72b5839 commit 4f0e2a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Repository/HarFileRepository.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function getIds(): array
5757
}
5858

5959
foreach ($hars as $index => $har_file) {
60+
// @infection-ignore-all: Equivalent mutation - changing < 4 to <= 4 has no effect
61+
// because any file with .har extension must be at least 5 chars ("x.har").
62+
// 4-char files would be filtered by length OR extension check either way.
6063
if (\strlen($har_file) < 4) {
6164
unset($hars[$index]);
6265
continue;

0 commit comments

Comments
 (0)