All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.hm.hafner.grading.CodeCoverageMarkdown Maven / Gradle / Ivy

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy