use of org.eclipse.tracecompass.analysis.os.linux.core.tests.stubs.inputoutput.IoTestCase.SectorCountInfo in project tracecompass by tracecompass.
the class InputOutputDiskTest method testSectorsAt.
/**
* Test the {@link Disk#getSectorsAt(long, IoOperationType)} method
* method
*/
@Test
public void testSectorsAt() {
InputOutputAnalysisModule module = setUp(fTestCase.getTraceFileName());
for (Integer deviceId : fTestCase.getSectorCount().keySet()) {
Disk disk = getDisk(module, deviceId);
assertNotNull(disk);
for (SectorCountInfo info : fTestCase.getSectorCount().get(deviceId)) {
double sectorsAt = disk.getSectorsAt(info.getTimestamp(), info.getType());
assertEquals("Sectors at " + info.getTimestamp() + " for type " + info.getType(), info.getNbSectors(), sectorsAt, 1.0);
}
}
}
Aggregations