tmf: Add some unit tests to the ITmfStatistics
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 31 Oct 2012 19:43:29 +0000 (15:43 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 2 Nov 2012 17:52:20 +0000 (13:52 -0400)
commite1c4333340c8ef0559155f33d958e4f328d34ba6
treeabf249b9caf07e58c1decd12e76c7b749cb28ef9
parent1c5a6a8f9d394d33743978340c58902efdb91dff
tmf: Add some unit tests to the ITmfStatistics

Also fixed some bugs that those tests exposed:
- Time ranges are now inclusive (both at the beginning and end)
  for all implementations.
- All methods in TmfStateStatistics will now wait for the history
  construction to be complete, so hopefully no more hundreds of
  AttributeNotFoundException's.
- State system queries at the end time should now work correctly
  (the work-around was removed).
- A time range beginning at the trace's start time should now
  return the correct values. I couldn't test with the edge case
  where you have more than 1 event exactly at the start time, but
  I assume it should work correctly too.

Change-Id: Ia4268eeb1c04033a41b4e8ea011a6007bc90187e
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/8463
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/AllTests.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TestParams.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfEventsStatisticsTest.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfStateStatisticsTest.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfStatisticsTest.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/TmfStateStatistics.java
This page took 0.025871 seconds and 5 git commands to generate.