diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-11 15:41:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-11 15:41:20 +0200 |
commit | 5bf7ded65ef517fac6b088342d195392bc09be4c (patch) | |
tree | 793eac32ddc018a3d2bb42cb088f4c919f22e0ed /tests | |
parent | f6c3c144e60611d2da7ba7aa5b115affe92a57a4 (diff) | |
download | sink-5bf7ded65ef517fac6b088342d195392bc09be4c.tar.gz sink-5bf7ded65ef517fac6b088342d195392bc09be4c.zip |
Moved all preprocessing back into the pipeline
Diffstat (limited to 'tests')
-rw-r--r-- | tests/entitystoretest.cpp | 10 | ||||
-rw-r--r-- | tests/mailquerybenchmark.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/entitystoretest.cpp b/tests/entitystoretest.cpp index 925ca7e..90575a5 100644 --- a/tests/entitystoretest.cpp +++ b/tests/entitystoretest.cpp | |||
@@ -49,14 +49,14 @@ private slots: | |||
49 | mail3.setExtractedSubject("foo"); | 49 | mail3.setExtractedSubject("foo"); |
50 | 50 | ||
51 | store.startTransaction(Storage::DataStore::ReadWrite); | 51 | store.startTransaction(Storage::DataStore::ReadWrite); |
52 | store.add("mail", mail, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 52 | store.add("mail", mail, false); |
53 | store.add("mail", mail2, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 53 | store.add("mail", mail2, false); |
54 | store.add("mail", mail3, false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 54 | store.add("mail", mail3, false); |
55 | 55 | ||
56 | mail.setExtractedSubject("foo"); | 56 | mail.setExtractedSubject("foo"); |
57 | 57 | ||
58 | store.modify("mail", mail, {}, false, [] (const ApplicationDomain::ApplicationDomainType &, ApplicationDomain::ApplicationDomainType &) {}); | 58 | store.modify("mail", mail, QByteArrayList{}, false); |
59 | store.remove("mail", mail3.identifier(), false, [] (const ApplicationDomain::ApplicationDomainType &) {}); | 59 | store.remove("mail", mail3, false); |
60 | store.commitTransaction(); | 60 | store.commitTransaction(); |
61 | 61 | ||
62 | store.startTransaction(Storage::DataStore::ReadOnly); | 62 | store.startTransaction(Storage::DataStore::ReadOnly); |
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp index 3ecfa19..b15c8d6 100644 --- a/tests/mailquerybenchmark.cpp +++ b/tests/mailquerybenchmark.cpp | |||
@@ -72,7 +72,7 @@ class MailQueryBenchmark : public QObject | |||
72 | domainObject.setFolder(QByteArray("folder") + QByteArray::number(i - (i % folderSpreadFactor))); | 72 | domainObject.setFolder(QByteArray("folder") + QByteArray::number(i - (i % folderSpreadFactor))); |
73 | } | 73 | } |
74 | 74 | ||
75 | entityStore.add("mail", domainObject, false, [] (const Mail &) {}); | 75 | entityStore.add("mail", domainObject, false); |
76 | } | 76 | } |
77 | 77 | ||
78 | entityStore.commitTransaction(); | 78 | entityStore.commitTransaction(); |