diff options
Diffstat (limited to 'src/testlib/qtaptestlogger_p.h')
| -rw-r--r-- | src/testlib/qtaptestlogger_p.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/testlib/qtaptestlogger_p.h b/src/testlib/qtaptestlogger_p.h index 72334bb5d33..99902b2f082 100644 --- a/src/testlib/qtaptestlogger_p.h +++ b/src/testlib/qtaptestlogger_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtTest module of the Qt Toolkit. @@ -76,8 +76,16 @@ public: void addBenchmarkResult(const QBenchmarkResult &) override {} private: - void outputTestLine(bool ok, int testNumber, QTestCharBuffer &directive); + void outputTestLine(bool ok, int testNumber, const QTestCharBuffer &directive); + void outputBuffer(const QTestCharBuffer &buffer); + bool hasMessages() const { return m_comments.constData()[0] || m_messages.constData()[0]; } + void flushMessages(); + void beginYamlish(); + void endYamlish(); bool m_wasExpectedFail; + QTestCharBuffer m_comments; + QTestCharBuffer m_messages; + bool m_gatherMessages = false; }; QT_END_NAMESPACE |
