result = analyzer.getCoverage();
}
private void assertLine(int nr, int insnMissed, int insnCovered,
int branchesMissed, int branchesCovered) {
final ILine line = result.getLine(nr);
assertEquals("Instructions in line " + nr,
CounterImpl.getInstance(insnMissed, insnCovered),
line.getInstructionCounter());
assertEquals("Branches in line " + nr,
CounterImpl.getInstance(branchesMissed, branchesCovered),
line.getBranchCounter());
}