##// END OF EJS Templates
Call the calculation of the thresholds in the scale editor (with each click on the 'automatic' mode)
Call the calculation of the thresholds in the scale editor (with each click on the 'automatic' mode)

File last commit:

r756:a7f60f6512e6
r1062:b014e09f2329
Show More
TestVariableCacheController.cpp
333 lines | 13.7 KiB | text/x-c | CppLexer
/ core / tests / Variable / TestVariableCacheController.cpp
Implementation of the cach interval algoritm
r229 #include <Variable/Variable.h>
#include <Variable/VariableCacheController.h>
#include <QObject>
#include <QtTest>
#include <memory>
class TestVariableCacheController : public QObject {
Q_OBJECT
private slots:
void testProvideNotInCacheDateTimeList();
Implementation of the addDateTime method of the cache
r230
void testAddDateTime();
Implementation of the cach interval algoritm
r229 };
void TestVariableCacheController::testProvideNotInCacheDateTimeList()
{
VariableCacheController variableCacheController{};
auto ts0 = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 0, 0}};
auto te0 = QDateTime{QDate{2017, 01, 01}, QTime{2, 4, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp0 = SqpRange{DateUtils::secondsSinceEpoch(ts0), DateUtils::secondsSinceEpoch(te0)};
Implementation of the cach interval algoritm
r229
auto ts1 = QDateTime{QDate{2017, 01, 01}, QTime{2, 6, 0, 0}};
auto te1 = QDateTime{QDate{2017, 01, 01}, QTime{2, 8, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp1 = SqpRange{DateUtils::secondsSinceEpoch(ts1), DateUtils::secondsSinceEpoch(te1)};
Implementation of the cach interval algoritm
r229
auto ts2 = QDateTime{QDate{2017, 01, 01}, QTime{2, 18, 0, 0}};
auto te2 = QDateTime{QDate{2017, 01, 01}, QTime{2, 20, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp2 = SqpRange{DateUtils::secondsSinceEpoch(ts2), DateUtils::secondsSinceEpoch(te2)};
Implementation of the cach interval algoritm
r229
Fix bug when creating two variables crash the app. ...
r756 auto var0 = std::make_shared<Variable>("");
var0->setRange(sqp0);
Implementation of the cach interval algoritm
r229
variableCacheController.addDateTime(var0, sqp0);
variableCacheController.addDateTime(var0, sqp1);
variableCacheController.addDateTime(var0, sqp2);
// first case [ts,te] < ts0
auto ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 0, 0, 0}};
auto te = QDateTime{QDate{2017, 01, 01}, QTime{2, 1, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
auto notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 auto notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// second case ts < ts0 && ts0 < te <= te0
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 0, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 30, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts0));
Implementation of the cach interval algoritm
r229
// 3th case ts < ts0 && te0 < te <= ts1
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 0, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 5, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 2);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts0));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 4th case ts < ts0 && ts1 < te <= te1
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 0, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 7, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 2);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts0));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts1));
Implementation of the cach interval algoritm
r229
// 5th case ts < ts0 && te3 < te
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 0, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 22, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 4);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts0));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts1));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(2);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te1));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts2));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(3);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te2));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 6th case ts2 < ts
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 45, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 47, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 7th case ts = te0 && te < ts1
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 4, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 5, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 8th case ts0 < ts < te0 && te < ts1
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 30, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 5, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 9th case ts0 < ts < te0 && ts1 < te < te1
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 30, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 7, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te0));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts1));
Implementation of the cach interval algoritm
r229
// 10th case te1 < ts < te < ts2
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 9, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 10, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 1);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 11th case te0 < ts < ts1 && te3 < te
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 5, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 47, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 3);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts1));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te1));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts2));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(2);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te2));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Implementation of the cach interval algoritm
r229
// 12th case te0 < ts < ts1 && te3 < te
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 5, 0, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 10, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Implementation of the cach interval algoritm
r229
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 2);
Correction for pull request
r243 notInCacheSqp = notInCach.first();
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(ts));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(ts1));
Implementation of the cach interval algoritm
r229
Correction for pull request
r243 notInCacheSqp = notInCach.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(notInCacheSqp.m_TStart, DateUtils::secondsSinceEpoch(te1));
QCOMPARE(notInCacheSqp.m_TEnd, DateUtils::secondsSinceEpoch(te));
Update the test to include the fixed bug test
r297
// 12th case ts0 < ts < te0
ts = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 10, 0}};
te = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 50, 0}};
PR: Use DateUtils instead of static_cast
r593 sqp = SqpRange{DateUtils::secondsSinceEpoch(ts), DateUtils::secondsSinceEpoch(te)};
Update the test to include the fixed bug test
r297
notInCach = variableCacheController.provideNotInCacheDateTimeList(var0, sqp);
QCOMPARE(notInCach.size(), 0);
Implementation of the cach interval algoritm
r229 }
Implementation of the addDateTime method of the cache
r230
void TestVariableCacheController::testAddDateTime()
{
VariableCacheController variableCacheController{};
auto ts0 = QDateTime{QDate{2017, 01, 01}, QTime{2, 3, 0, 0}};
auto te0 = QDateTime{QDate{2017, 01, 01}, QTime{2, 4, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp0 = SqpRange{DateUtils::secondsSinceEpoch(ts0), DateUtils::secondsSinceEpoch(te0)};
Implementation of the addDateTime method of the cache
r230
auto ts1 = QDateTime{QDate{2017, 01, 01}, QTime{2, 6, 0, 0}};
auto te1 = QDateTime{QDate{2017, 01, 01}, QTime{2, 8, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp1 = SqpRange{DateUtils::secondsSinceEpoch(ts1), DateUtils::secondsSinceEpoch(te1)};
Implementation of the addDateTime method of the cache
r230
auto ts2 = QDateTime{QDate{2017, 01, 01}, QTime{2, 18, 0, 0}};
auto te2 = QDateTime{QDate{2017, 01, 01}, QTime{2, 20, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp2 = SqpRange{DateUtils::secondsSinceEpoch(ts2), DateUtils::secondsSinceEpoch(te2)};
Implementation of the addDateTime method of the cache
r230
auto ts01 = QDateTime{QDate{2017, 01, 01}, QTime{2, 4, 0, 0}};
auto te01 = QDateTime{QDate{2017, 01, 01}, QTime{2, 6, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp01 = SqpRange{DateUtils::secondsSinceEpoch(ts01), DateUtils::secondsSinceEpoch(te01)};
Implementation of the addDateTime method of the cache
r230
auto ts3 = QDateTime{QDate{2017, 01, 01}, QTime{2, 14, 0, 0}};
auto te3 = QDateTime{QDate{2017, 01, 01}, QTime{2, 16, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp3 = SqpRange{DateUtils::secondsSinceEpoch(ts3), DateUtils::secondsSinceEpoch(te3)};
Implementation of the addDateTime method of the cache
r230
auto ts03 = QDateTime{QDate{2017, 01, 01}, QTime{2, 4, 0, 0}};
auto te03 = QDateTime{QDate{2017, 01, 01}, QTime{2, 22, 0, 0}};
PR: Use DateUtils instead of static_cast
r593 auto sqp03 = SqpRange{DateUtils::secondsSinceEpoch(ts03), DateUtils::secondsSinceEpoch(te03)};
Implementation of the addDateTime method of the cache
r230
Fix bug when creating two variables crash the app. ...
r756 auto var0 = std::make_shared<Variable>("");
var0->setRange(sqp0);
Implementation of the addDateTime method of the cache
r230
// First case: add the first interval to the variable :sqp0
variableCacheController.addDateTime(var0, sqp0);
auto dateCacheList = variableCacheController.dateCacheList(var0);
QCOMPARE(dateCacheList.count(), 1);
auto dateCache = dateCacheList.at(0);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts0));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te0));
Implementation of the addDateTime method of the cache
r230
// 2nd case: add a second interval : sqp1 > sqp0
variableCacheController.addDateTime(var0, sqp1);
dateCacheList = variableCacheController.dateCacheList(var0);
QCOMPARE(dateCacheList.count(), 2);
dateCache = dateCacheList.at(0);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts0));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te0));
Implementation of the addDateTime method of the cache
r230
dateCache = dateCacheList.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts1));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te1));
Implementation of the addDateTime method of the cache
r230
// 3th case: merge sqp0 & sqp1 with sqp01
variableCacheController.addDateTime(var0, sqp01);
dateCacheList = variableCacheController.dateCacheList(var0);
QCOMPARE(dateCacheList.count(), 1);
dateCache = dateCacheList.at(0);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts0));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te1));
Implementation of the addDateTime method of the cache
r230
// 4th case: add a second interval : sqp1 > sqp0
variableCacheController.addDateTime(var0, sqp2);
variableCacheController.addDateTime(var0, sqp3);
dateCacheList = variableCacheController.dateCacheList(var0);
QCOMPARE(dateCacheList.count(), 3);
dateCache = dateCacheList.at(0);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts0));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te1));
Implementation of the addDateTime method of the cache
r230
dateCache = dateCacheList.at(1);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts3));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te3));
Implementation of the addDateTime method of the cache
r230
dateCache = dateCacheList.at(2);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts2));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te2));
Implementation of the addDateTime method of the cache
r230
// 5th case: merge all interval
variableCacheController.addDateTime(var0, sqp03);
dateCacheList = variableCacheController.dateCacheList(var0);
QCOMPARE(dateCacheList.count(), 1);
dateCache = dateCacheList.at(0);
PR: Use DateUtils instead of static_cast
r593 QCOMPARE(dateCache.m_TStart, DateUtils::secondsSinceEpoch(ts0));
QCOMPARE(dateCache.m_TEnd, DateUtils::secondsSinceEpoch(te03));
Implementation of the addDateTime method of the cache
r230 }
Implementation of the cach interval algoritm
r229 QTEST_MAIN(TestVariableCacheController)
#include "TestVariableCacheController.moc"