Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
man-zhang committed Sep 29, 2023
1 parent 7891dc8 commit fb04a36
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions core/src/main/kotlin/org/evomaster/core/search/FitnessValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,13 @@ class FitnessValue(
var seedingTime = 0
var searchTime = 0

targets.entries.forEach { e ->
(e.value.distance == MAX_VALUE && (prefix == null || idMapper.getDescriptiveId(e.key).startsWith(prefix))).apply {
if (coveredTargetsDuringSeeding.contains(e.key))
seedingTime++
else
searchTime++
if (this && bootTime.any { it.descriptiveId == idMapper.getDescriptiveId(e.key) })
duplicatedcounter++
}
targets.entries.filter { e -> (e.value.distance == MAX_VALUE && (prefix == null || idMapper.getDescriptiveId(e.key).startsWith(prefix))) }.forEach { e ->
if (coveredTargetsDuringSeeding.contains(e.key))
seedingTime++
else
searchTime++
if (bootTime.any { it.descriptiveId == idMapper.getDescriptiveId(e.key) })
duplicatedcounter++
}

/*
Expand Down

0 comments on commit fb04a36

Please sign in to comment.