Search in sources :

Example 1 with BarColumn

use of org.jacoco.report.internal.html.table.BarColumn in project jacoco by jacoco.

the class HTMLFormatter method createTable.

private Table createTable() {
    final Table t = new Table();
    t.add("Element", null, new LabelColumn(), false);
    t.add("Missed Instructions", Styles.BAR, new BarColumn(CounterEntity.INSTRUCTION, locale), true);
    t.add("Cov.", Styles.CTR2, new PercentageColumn(CounterEntity.INSTRUCTION, locale), false);
    t.add("Missed Branches", Styles.BAR, new BarColumn(CounterEntity.BRANCH, locale), false);
    t.add("Cov.", Styles.CTR2, new PercentageColumn(CounterEntity.BRANCH, locale), false);
    addMissedTotalColumns(t, "Cxty", CounterEntity.COMPLEXITY);
    addMissedTotalColumns(t, "Lines", CounterEntity.LINE);
    addMissedTotalColumns(t, "Methods", CounterEntity.METHOD);
    addMissedTotalColumns(t, "Classes", CounterEntity.CLASS);
    return t;
}
Also used : Table(org.jacoco.report.internal.html.table.Table) PercentageColumn(org.jacoco.report.internal.html.table.PercentageColumn) BarColumn(org.jacoco.report.internal.html.table.BarColumn) LabelColumn(org.jacoco.report.internal.html.table.LabelColumn)

Aggregations

BarColumn (org.jacoco.report.internal.html.table.BarColumn)1 LabelColumn (org.jacoco.report.internal.html.table.LabelColumn)1 PercentageColumn (org.jacoco.report.internal.html.table.PercentageColumn)1 Table (org.jacoco.report.internal.html.table.Table)1