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
qteamcitylogger_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 Borgar Ovsthus
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
QTEAMCITYLOGGER_P_H
5
#
define
QTEAMCITYLOGGER_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
<
QtTest
/
private
/
qabstracttestlogger_p
.
h
>
19
20
#
include
<
QtCore
/
qstring
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QTeamCityLogger :
public
QAbstractTestLogger
25
{
26
public
:
27
QTeamCityLogger(
const
char
*filename);
28
~QTeamCityLogger();
29
30
void
startLogging() override;
31
void
stopLogging() override;
32
33
void
enterTestFunction(
const
char
*function) override;
34
void
leaveTestFunction() override;
35
36
void
addIncident(IncidentTypes type,
const
char
*description,
37
const
char
*file =
nullptr
,
int
line = 0) override;
38
void
addBenchmarkResult(
const
QBenchmarkResult &result) override;
39
40
void
addMessage(MessageTypes type,
const
QString &message,
41
const
char
*file =
nullptr
,
int
line = 0) override;
42
43
private
:
44
QTestCharBuffer currTestFuncName;
45
QTestCharBuffer pendingMessages;
46
QTestCharBuffer flowID;
47
48
void
tcEscapedString(QTestCharBuffer *buf,
const
char
*str)
const
;
49
void
escapedTestFuncName(QTestCharBuffer *buf)
const
;
50
void
addPendingMessage(
const
char
*type,
const
char
*msg,
const
char
*file,
int
line);
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
qtbase
src
testlib
qteamcitylogger_p.h
Generated on
for Qt by
1.18.0