kde-workspace/drkonqi/tests/backtraceparsertest
Ivailo Monev 692122d10e drkonqi: adjust BacktraceParserTest to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-03 03:37:41 +00:00
..
backtraceparsertest_data imported everything from kde-runtime 2014-11-15 04:16:00 +02:00
backtraceparsertest.cpp drkonqi: adjust BacktraceParserTest to Katie changes 2020-02-03 03:37:41 +00:00
backtraceparsertest.h generic: make changes required for building against katie 2015-08-12 13:11:16 +03:00
backtraceparsertest_manual.cpp generic: make changes required for building against katie 2015-08-12 13:11:16 +03:00
CMakeLists.txt generic: build system cleanups 2015-11-06 05:56:50 +02:00
fakebacktracegenerator.cpp generic: adjust for use with CMake moc 2015-02-27 09:28:46 +00:00
fakebacktracegenerator.h imported everything from kde-runtime 2014-11-15 04:16:00 +02:00
README imported everything from kde-runtime 2014-11-15 04:16:00 +02:00

This is a unit test for the BacktraceInfo class, which is used in drkonqi
to rate the usefulness of a backtrace.

This test dynamically loads test data from the "backtraceinfotest_data" directory.
To add new data, simply create a file starting with the "test_" prefix and paste
a backtrace in it. Then, in the "usefulness_map" file, add a line with the following format:

    test_file: UsefulnessValue

where "test_file" is the exact filename of the file containing the backtrace and
UsefulnessValue is the usefulness value that you expect the backtrace to get.
Whitespaces do not matter, they are ignored. Valid usefulness values can be seen
in backtraceinfotest.h, in the enum BacktraceInfoTest::Usefulness.

The UsefulnessValue has to be the enum's text representation of the
value and not an integer. For example, having the enum like this:

    enum Usefulness { ReallyUseful = 0, MayBeUseful=1, ProbablyUseless=2, Useless = 3 };

"ReallyUseful" is a valid value, but "0" isn't.


All files in the "backtraceinfotest_data" directory that do not start with the
"test_" prefix are ignored (except the "usefulness_map" file, which has a special
purpose, as described above)