File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/com/endava/cats/args Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 36
36
import java .util .Locale ;
37
37
import java .util .Optional ;
38
38
import java .util .Set ;
39
+ import java .util .function .Predicate ;
39
40
import java .util .regex .Pattern ;
40
41
import java .util .stream .Stream ;
41
42
@@ -330,8 +331,11 @@ public List<String> getFirstPhaseFuzzersForPath() {
330
331
public List <Fuzzer > getSecondPhaseFuzzers () {
331
332
if (SECOND_PHASE_FUZZERS_TO_BE_RUN .isEmpty ()) {
332
333
List <String > secondPhaseFuzzersAsString = this .filterFuzzersByAnnotationWhenCheckArgumentSupplied (true , SecondPhaseFuzzer .class );
334
+ List <String > fuzzersExcludingSkipped = secondPhaseFuzzersAsString .stream ().filter (Predicate .not (this .getSkipFuzzers ()::contains ))
335
+ .filter (fuzzer -> this .getSuppliedFuzzers ().isEmpty () || this .getSuppliedFuzzers ().contains (fuzzer ))
336
+ .toList ();
333
337
SECOND_PHASE_FUZZERS_TO_BE_RUN .addAll (this .getAllRegisteredFuzzers ().stream ()
334
- .filter (fuzzer -> secondPhaseFuzzersAsString .contains (fuzzer .toString ()))
338
+ .filter (fuzzer -> fuzzersExcludingSkipped .contains (fuzzer .toString ()))
335
339
.toList ());
336
340
}
337
341
if (containsOnlySpecialFuzzers (this .getSuppliedFuzzers ())) {
You can’t perform that action at this time.
0 commit comments