use of org.jacoco.report.internal.html.table.Table in project jacoco by jacoco.
the class PageTestBase method setup.
protected void setup() throws Exception {
output = new MemoryMultiReportOutput();
rootFolder = new ReportOutputFolder(output);
final Resources resources = new Resources(rootFolder);
final Table table = new Table();
table.add("Element", null, new LabelColumn(), true);
context = new IHTMLReportContext() {
public ILanguageNames getLanguageNames() {
return new JavaNames();
}
public Resources getResources() {
return resources;
}
public Table getTable() {
return table;
}
public String getFooterText() {
return "CustomFooter";
}
public ILinkable getSessionsPage() {
return new LinkableStub("sessions.html", "Sessions", Styles.EL_SESSION);
}
public String getOutputEncoding() {
return "UTF-8";
}
public IIndexUpdate getIndexUpdate() {
return new IIndexUpdate() {
public void addClass(ILinkable link, long classid) {
}
};
}
public Locale getLocale() {
return Locale.ENGLISH;
}
};
support = new HTMLSupport();
}
use of org.jacoco.report.internal.html.table.Table 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;
}
Aggregations