Skip to content

Changes

Summary

  1. kernel: Add FileAccessDataProvider tests (details)
Commit 2b9825ba74277f153eba25d09e28309716aa7c30 by Matthew Khouzam
kernel: Add FileAccessDataProvider tests

[Modified] FileAccessDP to access correctly the IO analysis results
[Added] FileAccessDPTest to ensure correctness in future updates

This patch introduces tests for the FileAccessDataProvider. While
writing tests, the behavior of the getRowModel was not correct and it
was modified accordingly.

Signed-off-by: Arnaud Fiorini <fiorini.arnaud@gmail.com>
Change-Id: Idbe1553d69b98edb9730a5138c5085868bd9d25e
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/202596
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
The file was addedanalyses/org.eclipse.tracecompass.incubator.kernel.core.tests/testfiles/dp/expectedFileAccessRows
The file was addedanalyses/org.eclipse.tracecompass.incubator.kernel.core.tests/src/org/eclipse/tracecompass/incubator/kernel/core/tests/fileaccess/package-info.java
The file was modified analyses/org.eclipse.tracecompass.incubator.kernel.core.tests/testfiles/traces/iotrace.xml (diff)
The file was addedanalyses/org.eclipse.tracecompass.incubator.kernel.core.tests/testfiles/dp/expectedFileAccessTree
The file was modified analyses/org.eclipse.tracecompass.incubator.kernel.core/META-INF/MANIFEST.MF (diff)
The file was modified analyses/org.eclipse.tracecompass.incubator.kernel.core/src/org/eclipse/tracecompass/incubator/internal/kernel/core/fileaccess/FileAccessDataProvider.java (diff)
The file was addedanalyses/org.eclipse.tracecompass.incubator.kernel.core.tests/src/org/eclipse/tracecompass/incubator/kernel/core/tests/fileaccess/FileAccessDataProviderTest.java