2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-04-04 14:39:28 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-04-04 14:39:28 +02:00
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QPair>
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
#include <QVector>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
class CallgrindParserTests : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
|
void initTestCase();
|
|
|
|
|
void cleanup();
|
|
|
|
|
|
|
|
|
|
void testHeaderData();
|
|
|
|
|
void testSimpleFunction();
|
|
|
|
|
void testCallee();
|
|
|
|
|
void testInlinedCalls();
|
|
|
|
|
|
|
|
|
|
void testMultiCost();
|
|
|
|
|
void testMultiPos();
|
|
|
|
|
void testMultiPosAndCost();
|
|
|
|
|
|
|
|
|
|
void testCycle();
|
|
|
|
|
void testRecursiveCycle();
|
|
|
|
|
|
|
|
|
|
void testRecursion();
|
|
|
|
|
};
|