Commit aa20bf9
test: improve coverage for MatchStrategy
This commit adds a new unit test suite, `MatchStrategyTest`, to explicitly
verify the behavior of the `FileMatchCollector` instances produced by
`MatchStrategy.ALL_MATCHES` and `MatchStrategy.ANY_MATCH`. It tests their
core branch logic regarding the termination condition (`searchIsOver()`).
These tests strictly utilize standard JUnit 4 APIs and Mockito for dependency
isolation, and maintain full compatibility with the existing test infrastructure.
Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com>1 parent 28a1baa commit aa20bf9
1 file changed
Lines changed: 36 additions & 0 deletions
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments