Warning, /plasma/drkonqi/src/tests/backtraceparsertest/README is written in an unsupported language. File is not indexed.
0001 This is a unit test for the BacktraceInfo class, which is used in drkonqi
0002 to rate the usefulness of a backtrace.
0003
0004 This test dynamically loads test data from the "backtraceinfotest_data" directory.
0005 To add new data, simply create a file starting with the "test_" prefix and paste
0006 a backtrace in it. Then, in the "usefulness_map" file, add a line with the following format:
0007
0008 test_file: UsefulnessValue
0009
0010 where "test_file" is the exact filename of the file containing the backtrace and
0011 UsefulnessValue is the usefulness value that you expect the backtrace to get.
0012 Whitespaces do not matter, they are ignored. Valid usefulness values can be seen
0013 in backtraceinfotest.h, in the enum BacktraceInfoTest::Usefulness.
0014
0015 The UsefulnessValue has to be the enum's text representation of the
0016 value and not an integer. For example, having the enum like this:
0017
0018 enum Usefulness { ReallyUseful = 0, MayBeUseful=1, ProbablyUseless=2, Useless = 3 };
0019
0020 "ReallyUseful" is a valid value, but "0" isn't.
0021
0022
0023 All files in the "backtraceinfotest_data" directory that do not start with the
0024 "test_" prefix are ignored (except the "usefulness_map" file, which has a special
0025 purpose, as described above)