use of org.kanonizo.framework.objects.Goal in project kanonizo by kanonizo.
the class APFDFunction method getGoalMap.
protected Map<Goal, Integer> getGoalMap() {
Map<Goal, Integer> goalMap = new HashMap<>();
List<TestCase> testCases = sut.getTestSuite().getTestCases();
for (int i = 0; i < testCases.size(); i++) {
final int ind = i;
TestCase tc = testCases.get(i);
Set<? extends Goal> goalsCovered = getCoveredGoals(tc);
goalsCovered.forEach(goal -> {
if (!goalMap.containsKey(goal)) {
goalMap.put(goal, ind + 1);
}
});
}
return goalMap;
}