tst_QDateTime: Inline some trivial delegations by _data() functions

Change-Id: Ib174a3ef1e4e913c6dc433b17854295cf529ad8f
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2022-12-01 17:54:37 +01:00
parent e3321cf599
commit 2dd83a0778

View File

@ -46,7 +46,7 @@ private Q_SLOTS:
void setMSecsSinceEpoch_data();
void setMSecsSinceEpoch();
void fromSecsSinceEpoch();
void fromMSecsSinceEpoch_data();
void fromMSecsSinceEpoch_data() { setMSecsSinceEpoch_data(); }
void fromMSecsSinceEpoch();
#if QT_CONFIG(datestring)
void toString_isoDate_data();
@ -72,15 +72,15 @@ private Q_SLOTS:
void addMSecs();
void toTimeSpec_data();
void toTimeSpec();
void toLocalTime_data();
void toLocalTime_data() { toTimeSpec_data(); }
void toLocalTime();
void toUTC_data();
void toUTC_data() { toTimeSpec_data(); }
void toUTC();
void toUTC_extra();
void daysTo();
void secsTo_data();
void secsTo();
void msecsTo_data();
void msecsTo_data() { addMSecs_data(); }
void msecsTo();
void operator_eqeq_data();
void operator_eqeq();
@ -768,11 +768,6 @@ void tst_QDateTime::setMSecsSinceEpoch()
}
}
void tst_QDateTime::fromMSecsSinceEpoch_data()
{
setMSecsSinceEpoch_data();
}
void tst_QDateTime::fromMSecsSinceEpoch()
{
QFETCH(qint64, msecs);
@ -1640,11 +1635,6 @@ void tst_QDateTime::toTimeSpec()
QCOMPARE(localToOffset.toTimeSpec(Qt::LocalTime), fromLocal);
}
void tst_QDateTime::toLocalTime_data()
{
toTimeSpec_data();
}
void tst_QDateTime::toLocalTime()
{
QFETCH(QDateTime, fromUtc);
@ -1655,11 +1645,6 @@ void tst_QDateTime::toLocalTime()
QCOMPARE(fromUtc.toLocalTime(), fromLocal.toLocalTime());
}
void tst_QDateTime::toUTC_data()
{
toTimeSpec_data();
}
void tst_QDateTime::toUTC()
{
QFETCH(QDateTime, fromUtc);
@ -1739,11 +1724,6 @@ void tst_QDateTime::secsTo()
}
}
void tst_QDateTime::msecsTo_data()
{
addMSecs_data();
}
void tst_QDateTime::msecsTo()
{
QFETCH(const QDateTime, dt);