MCPcopy Create free account
hub / github.com/IJHack/QtPass / parseGrepOutputSingleEntry

Method parseGrepOutputSingleEntry

tests/auto/util/tst_util.cpp:1834–1842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1832}
1833
1834void 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
1844void tst_util::parseGrepOutputMultipleEntries() {
1845 const QString raw = QStringLiteral("\x1B[94mentry/a\x1B[0m:\nline1\nline2\n"

Callers

nothing calls this directly

Calls 1

parseGrepOutputFunction · 0.85

Tested by

no test coverage detected