Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qtestjunitstreamer_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QTESTJUNITSTREAMER_P_H
5
#
define
QTESTJUNITSTREAMER_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
19
#
include
<
vector
>
20
21
QT_BEGIN_NAMESPACE
22
23
24
class
QTestElement;
25
class
QTestElementAttribute
;
26
class
QJUnitTestLogger
;
27
struct
QTestCharBuffer
;
28
29
class
QTestJUnitStreamer
30
{
31
public
:
32
QTestJUnitStreamer
(
QJUnitTestLogger
*logger);
33
~
QTestJUnitStreamer
();
34
35
void
formatStart
(
const
QTestElement *element,
QTestCharBuffer
*formatted)
const
;
36
void
formatEnd
(
const
QTestElement *element,
QTestCharBuffer
*formatted)
const
;
37
void
formatAfterAttributes
(
const
QTestElement *element,
QTestCharBuffer
*formatted)
const
;
38
void
output
(QTestElement *element)
const
;
39
void
outputElements
(
const
std::vector<QTestElement*> &)
const
;
40
void
outputElementAttributes
(
const
QTestElement *element,
const
std::vector<QTestElementAttribute*> &attributes)
const
;
41
42
void
outputString
(
const
char
*msg)
const
;
43
44
private
:
45
[[nodiscard]]
bool
formatAttributes(
const
QTestElement *element,
46
const
QTestElementAttribute
*attribute,
47
QTestCharBuffer
*formatted)
const
;
48
static
void
indentForElement(
const
QTestElement* element,
char
* buf,
int
size);
49
50
QJUnitTestLogger
*testLogger;
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
QJUnitTestLogger
Definition
qjunittestlogger_p.h:32
QTestElementAttribute
Definition
qtestelementattribute_p.h:61
QTestJUnitStreamer
Definition
qtestjunitstreamer_p.h:30
QTestJUnitStreamer::~QTestJUnitStreamer
~QTestJUnitStreamer()
QTestJUnitStreamer::output
void output(QTestElement *element) const
Definition
qtestjunitstreamer.cpp:111
QTestJUnitStreamer::formatEnd
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const
Definition
qtestjunitstreamer.cpp:57
QTestJUnitStreamer::outputElements
void outputElements(const std::vector< QTestElement * > &) const
Definition
qtestjunitstreamer.cpp:135
QTestJUnitStreamer::formatStart
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const
Definition
qtestjunitstreamer.cpp:41
QTestJUnitStreamer::QTestJUnitStreamer
QTestJUnitStreamer(QJUnitTestLogger *logger)
Definition
qtestjunitstreamer.cpp:15
QTestJUnitStreamer::formatAfterAttributes
void formatAfterAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
Definition
qtestjunitstreamer.cpp:95
QTestJUnitStreamer::outputElementAttributes
void outputElementAttributes(const QTestElement *element, const std::vector< QTestElementAttribute * > &attributes) const
Definition
qtestjunitstreamer.cpp:141
QTestJUnitStreamer::outputString
void outputString(const char *msg) const
Definition
qtestjunitstreamer.cpp:151
QTestCharBuffer
Definition
qabstracttestlogger_p.h:91
qtbase
src
testlib
qtestjunitstreamer_p.h
Generated on
for Qt by
1.18.0