edu.hm.hafner.grading.CodeCoverageMarkdown Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autograding-model Show documentation
Show all versions of autograding-model Show documentation
This module autogrades Java projects based on a configurable set of metrics.
The newest version!
package edu.hm.hafner.grading;
import java.util.List;
/**
* Renders the code coverage results in Markdown.
*
* @author Tobias Effner
* @author Ullrich Hafner
*/
public class CodeCoverageMarkdown extends CoverageMarkdown {
static final String TYPE = "Code Coverage Score";
/**
* Creates a new Markdown renderer for code coverage results.
*/
public CodeCoverageMarkdown() {
super(TYPE, "footprints", "Covered %", "Missed %");
}
@Override
protected List createScores(final AggregatedScore aggregation) {
return aggregation.getCodeCoverageScores();
}
@Override
protected String getIcon(final CoverageScore score) {
return ":%s:".formatted(score.getIcon());
}
}