| 49 | namespace QTest { |
| 50 | template <> |
| 51 | inline char* toString(const KDevelop::DocumentRange& documentRange) |
| 52 | { |
| 53 | auto range = QTest::toString(*static_cast<const KTextEditor::Range*>(&documentRange)); |
| 54 | QByteArray ba = "DocumentRange[range=" + QByteArray::fromRawData(range, strlen(range)) |
| 55 | + ", document=" + documentRange.document.toUrl().toDisplayString().toLatin1() + "]"; |
| 56 | delete[] range; |
| 57 | return qstrdup(ba.data()); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | #endif // KDEVPLATFORM_DOCUMENTRANGE_H |
no test coverage detected