Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTestTable Class Reference

#include <qtesttable_p.h>

+ Collaboration diagram for QTestTable:

Public Member Functions

 QTestTable ()
 
 ~QTestTable ()
 
void addColumn (int elementType, const char *elementName)
 
QTestDatanewData (const char *tag)
 
int elementCount () const
 
int dataCount () const
 
int elementTypeId (int index) const
 
const char * dataTag (int index) const
 
int indexOf (const char *elementName) const
 
bool isEmpty () const
 
QTestDatatestData (int index) const
 

Static Public Member Functions

static QTestTableglobalTestTable ()
 
static QTestTablecurrentTestTable ()
 
static void clearGlobalTestTable ()
 

Detailed Description

Definition at line 26 of file qtesttable_p.h.

Constructor & Destructor Documentation

◆ QTestTable()

QTestTable::QTestTable ( )

Definition at line 88 of file qtesttable.cpp.

References QTestTablePrivate::currentTestTable.

Referenced by globalTestTable().

+ Here is the caller graph for this function:

◆ ~QTestTable()

QTestTable::~QTestTable ( )

Definition at line 94 of file qtesttable.cpp.

References QTestTablePrivate::currentTestTable.

Member Function Documentation

◆ addColumn()

void QTestTable::addColumn ( int elementType,
const char * elementName )

Definition at line 52 of file qtesttable.cpp.

References QTestTablePrivate::addColumn(), indexOf(), QTEST_ASSERT, and qWarning.

Referenced by QuickTestResult::initTestTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearGlobalTestTable()

void QTestTable::clearGlobalTestTable ( )
static

Definition at line 149 of file qtesttable.cpp.

References QTestTablePrivate::gTable.

Referenced by QTest::qRun().

+ Here is the caller graph for this function:

◆ currentTestTable()

QTestTable * QTestTable::currentTestTable ( )
static

Definition at line 155 of file qtesttable.cpp.

References QTestTablePrivate::currentTestTable.

Referenced by QTest::addColumnInternal(), QTest::addRow(), and QTest::newRow().

+ Here is the caller graph for this function:

◆ dataCount()

int QTestTable::dataCount ( ) const

Definition at line 67 of file qtesttable.cpp.

References QTestTablePrivate::dataList.

Referenced by QTest::printUnknownDataTagError(), and QTest::qPrintDataTags().

+ Here is the caller graph for this function:

◆ dataTag()

const char * QTestTable::dataTag ( int index) const

Definition at line 105 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

◆ elementCount()

int QTestTable::elementCount ( ) const

Definition at line 62 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

Referenced by QTestData::append(), and QTestData::data().

+ Here is the caller graph for this function:

◆ elementTypeId()

int QTestTable::elementTypeId ( int index) const

Definition at line 100 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

Referenced by QTestData::~QTestData(), and QTestData::append().

+ Here is the caller graph for this function:

◆ globalTestTable()

QTestTable * QTestTable::globalTestTable ( )
static

Definition at line 142 of file qtesttable.cpp.

References QTestTable(), and QTestTablePrivate::gTable.

Referenced by QTest::qPrintDataTags(), and QTest::qRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ indexOf()

int QTestTable::indexOf ( const char * elementName) const

Definition at line 130 of file qtesttable.cpp.

References QSet< T >::begin(), QTestTablePrivate::elementList, QSet< T >::end(), it, and QTEST_ASSERT.

Referenced by addColumn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEmpty()

bool QTestTable::isEmpty ( ) const

Definition at line 72 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

◆ newData()

QTestData * QTestTable::newData ( const char * tag)

Definition at line 77 of file qtesttable.cpp.

References QTestTablePrivate::addRow(), QDuplicateTracker< T, Prealloc >::hasSeen(), QTEST_ASSERT, qWarning, tag, and QTestTablePrivate::tagSet.

+ Here is the call graph for this function:

◆ testData()

QTestData * QTestTable::testData ( int index) const

Definition at line 110 of file qtesttable.cpp.

References QTestTablePrivate::dataList.

Referenced by QTest::printUnknownDataTagError(), and QTest::qPrintDataTags().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: