#include <TestBaseLine.h>
Public Types | |
| typedef QList< TestBaseLine * > | List |
| enum | Type { XML, Fragment, Text, Ignore, Inspect, ExpectedError } |
Public Member Functions | |
| QString | details () const |
| void | setDetails (const QString &details) |
| TestBaseLine (const Type type) | |
| void | toXML (XMLWriter &receiver) const |
| Type | type () const |
Static Public Member Functions | |
| static QString | displayName (const Type id) |
| static Type | identifierFromString (const QString &string) |
| static TestResult::Status | scan (const QString &serialized, const TestBaseLine::List &lines) |
| static TestResult::Status | scanErrors (const Patternist::Message::List &errors, const TestBaseLine::List &lines) |
Protected Member Functions | |
| TestResult::Status | verify (const QString &serializedInput) const |
TestBaseLine represents a valid outcome for a test case, the "base line". A XQTS test case can have many different valid base lines, and one TestBaseLine instance represents on of them.
Of highest interest, TestBaseLine have the function scan() and scanErrors(), which allows serialized output to be compared to the base line.
Definition at line 43 of file TestBaseLine.h.
Identifies what kind of comparator to use. The documentation for each enumerator is copied from Guidelines for Running the XML Query Test Suite
Definition at line 55 of file TestBaseLine.h.
| KXQTS::TestBaseLine::TestBaseLine | ( | const Type | type | ) |
Constructs a TestBaseLine of type type.
| QString TestBaseLine::displayName | ( | const Type | id | ) | [static] |
id. For example, if Inspect was passed, "Inspect" would be returned. Definition at line 341 of file TestBaseLine.cpp.
References ExpectedError, Fragment, Ignore, Inspect, Text, and XML.
Referenced by toXML().
Here is the caller graph for this function:

| TestResult::Status TestBaseLine::scan | ( | const QString & | serialized, | |
| const TestBaseLine::List & | lines | |||
| ) | [static] |
Compares items(typically the result of an evaluation) against the base lines lines.
Definition at line 38 of file TestBaseLine.cpp.
References KXQTS::TestResult::Fail, KXQTS::TestResult::NotTested, and KXQTS::TestResult::Pass.
| void TestBaseLine::setDetails | ( | const QString & | details | ) |
What details contains depends on the type(). If the type() is ExpectedError, details contains the relevant error code. If the type() is one which compares result against a base line, it is a filename locating the baseline.
Definition at line 394 of file TestBaseLine.cpp.
Referenced by KXQTS::TestSuiteHandler::endElement().
Here is the caller graph for this function:

1.5.1