adds skeleton of FST plugin
This commit is contained in:
BIN
tests/com.minres.scviewer.database.test/inputs/my_db.fst
Normal file
BIN
tests/com.minres.scviewer.database.test/inputs/my_db.fst
Normal file
Binary file not shown.
@ -144,6 +144,7 @@ public class DatabaseServicesTest {
|
||||
assertEquals(3, attr.size());
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCFtr() throws Exception {
|
||||
File f = new File("inputs/my_db_c.ftr").getAbsoluteFile();
|
||||
@ -178,4 +179,21 @@ public class DatabaseServicesTest {
|
||||
assertEquals(3, attr.size());
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFst() throws Exception {
|
||||
File f = new File("inputs/my_db.fst").getAbsoluteFile();
|
||||
assertTrue(f.exists());
|
||||
waveformDb.load(f);
|
||||
assertNotNull(waveformDb);
|
||||
List<IWaveform> waves= waveformDb.getAllWaves();
|
||||
assertEquals(14, waves.size());
|
||||
assertEquals(2, waveformDb.getChildNodes().size());
|
||||
IWaveform bus_data_wave = waves.get(0);
|
||||
EventEntry bus_data_entry = bus_data_wave.getEvents().floorEntry(1400000000L);
|
||||
assertEquals("00001011", bus_data_entry.events[0].toString());
|
||||
IWaveform rw_wave = waves.get(2);
|
||||
EventEntry rw_entry = rw_wave.getEvents().floorEntry(2360000000L);
|
||||
assertEquals("1", rw_entry.events[0].toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user