| 147 | } |
| 148 | |
| 149 | int rprt(const QStringList& lines) const |
| 150 | { |
| 151 | static const QRegularExpression kRprt(QStringLiteral(R"(RPRT\s+(-?\d+))")); |
| 152 | for (const QString& l : lines) { |
| 153 | const QRegularExpressionMatch m = kRprt.match(l); |
| 154 | if (m.hasMatch()) |
| 155 | return m.captured(1).toInt(); |
| 156 | } |
| 157 | return -999; |
| 158 | } |
| 159 | |
| 160 | bool ok(const QStringList& lines) const { return rprt(lines) == 0; } |
| 161 |
no test coverage detected