*/
private AbstractDataTable createTestChartDataTable() {
Project p = this.project;
DataTable data = DataTable.create();
data.addColumn(ColumnType.STRING, "Version");
data.addColumn(ColumnType.NUMBER, "Lignes de code à tester");
data.addColumn(ColumnType.NUMBER, "Lignes de code testées");
data.addRows(p.getVersionCount());
// Unavailable stats counter
int z = 0;
for (int i = 0; i < p.getVersionCount(); i++) {
int locValue = p.getNloc(i + 1);
int covValue = p.getNcovl(i + 1);
// If no value is available for this version, don't represent it on
// the chart
if (locValue == -1 || covValue == -1) {
z++;
} else {
// Version
data.setValue(i - z, 0, String.valueOf(i + 1));
// Class number
data.setValue(i - z, 1, locValue);
// Covered class number
data.setValue(i - z, 2, covValue);
}
}
return data;
}