| 1832 | } |
| 1833 | |
| 1834 | void tst_util::parseGrepOutputSingleEntry() { |
| 1835 | // Simulate: header with ANSI blue, then one match line |
| 1836 | const QString raw = QStringLiteral("\x1B[94mmy/entry\x1B[0m:\nsome match\n"); |
| 1837 | auto results = parseGrepOutput(raw); |
| 1838 | QCOMPARE(results.size(), 1); |
| 1839 | QCOMPARE(results[0].first, QStringLiteral("my/entry")); |
| 1840 | QCOMPARE(results[0].second.size(), 1); |
| 1841 | QCOMPARE(results[0].second[0], QStringLiteral("some match")); |
| 1842 | } |
| 1843 | |
| 1844 | void tst_util::parseGrepOutputMultipleEntries() { |
| 1845 | const QString raw = QStringLiteral("\x1B[94mentry/a\x1B[0m:\nline1\nline2\n" |
nothing calls this directly
no test coverage detected