Qt 6.x
The Qt SDK
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 84 of file qtesttable.cpp.

References QTestTablePrivate::currentTestTable.

Referenced by globalTestTable().

+ Here is the caller graph for this function:

◆ ~QTestTable()

QTestTable::~QTestTable ( )

Definition at line 90 of file qtesttable.cpp.

References QTestTablePrivate::currentTestTable.

Member Function Documentation

◆ addColumn()

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

Definition at line 49 of file qtesttable.cpp.

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

Referenced by QTest::addColumnInternal().

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

◆ clearGlobalTestTable()

void QTestTable::clearGlobalTestTable ( )
static

Definition at line 151 of file qtesttable.cpp.

References QTestTablePrivate::gTable.

Referenced by QTest::qCleanup().

+ Here is the caller graph for this function:

◆ currentTestTable()

QTestTable * QTestTable::currentTestTable ( )
static

Definition at line 157 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 64 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 101 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

◆ elementCount()

int QTestTable::elementCount ( ) const

Definition at line 59 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

Referenced by QTest::addRow(), QTestData::append(), QTestData::data(), and QTest::newRow().

+ Here is the caller graph for this function:

◆ elementTypeId()

int QTestTable::elementTypeId ( int  index) const

Definition at line 96 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 144 of file qtesttable.cpp.

References QTestTable(), and QTestTablePrivate::gTable.

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

+ 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 132 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 69 of file qtesttable.cpp.

References QTestTablePrivate::elementList.

◆ newData()

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

Definition at line 74 of file qtesttable.cpp.

References QTestTablePrivate::addRow(), QTestTablePrivate::hasRow(), qWarning, and tag.

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

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

◆ testData()

QTestData * QTestTable::testData ( int  index) const

Definition at line 106 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: