Commit 46f63d2
committed
fix: silently skip duplicate TestFiles.add() instead of raising
Java test discovery adds the same instrumented_behavior_file_path with
different fields. The old Pydantic __eq__ treated them as different;
the set-based dedup correctly identifies them as the same test file.
Since get_test_type_by_instrumented_file_path() returns on first path
match anyway, duplicates by path are dead weight. Silent skip (first
write wins) is both correct and O(1).1 parent acae631 commit 46f63d2
2 files changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
0 commit comments