aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/unittest.pro
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2020-04-27 20:01:38 +0200
committerTim Jenssen <tim.jenssen@qt.io>2020-04-27 18:17:11 +0000
commit0e1870368c8ab7de0f7a90f7149d0b83a1d52090 (patch)
treec0b8b83821fea95ac8a06eb20bb698ddea46e2cd /tests/unit/unittest/unittest.pro
parent7554f89c715090313a60901aecf86ba6e5acf68c (diff)
Sqlite: Add Sqlite::Value
It adds a layer if you don't know if the type is integer, float or string. It does not handle bytearrays here because so far there is no need. There are two classes, Sqlite::Value and Sqlite::ValueView. Value owns the string, ValueView holds only a view the string. So there is no allocation. It is designed to hold Utf-8 string like Sqlite but it can be easily converted in and from QString or QVariant but mind about that this is not free. ValueView has no constructors on perpose because it would be ambiguous if there would be constructors for the other primitives of the Sqlite layer like "int64", "double" and "string view". Change-Id: Ia39364eb2fc1998e5c59fdb4316add22c748507d Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'tests/unit/unittest/unittest.pro')
-rw-r--r--tests/unit/unittest/unittest.pro19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/unit/unittest/unittest.pro b/tests/unit/unittest/unittest.pro
index 1db48813e8..6155cf3212 100644
--- a/tests/unit/unittest/unittest.pro
+++ b/tests/unit/unittest/unittest.pro
@@ -80,6 +80,7 @@ SOURCES += \
smallstring-test.cpp \
sourcerangefilter-test.cpp \
spydummy.cpp \
+ sqlitevalue-test.cpp \
symbolindexer-test.cpp \
symbolsfindfilter-test.cpp \
stringcache-test.cpp \
@@ -122,7 +123,13 @@ SOURCES += \
headerpathfilter-test.cpp \
toolchainargumentscache-test.cpp \
modifiedtimechecker-test.cpp \
- readexporteddiagnostics-test.cpp
+ sqlitecolumn-test.cpp \
+ sqlitedatabasebackend-test.cpp \
+ sqlitedatabase-test.cpp \
+ sqlitestatement-test.cpp \
+ sqlitetable-test.cpp \
+ sqlstatementbuilder-test.cpp \
+ createtablesqlstatementbuilder-test.cpp
!isEmpty(LIBCLANG_LIBS) {
SOURCES += \
@@ -158,7 +165,6 @@ SOURCES += \
codecompleter-test.cpp \
codecompletionsextractor-test.cpp \
completionchunkstotextconverter-test.cpp \
- createtablesqlstatementbuilder-test.cpp \
cursor-test.cpp \
diagnosticset-test.cpp \
diagnostic-test.cpp \
@@ -168,17 +174,12 @@ SOURCES += \
skippedsourceranges-test.cpp \
sourcelocation-test.cpp \
sourcerange-test.cpp \
- sqlitecolumn-test.cpp \
- sqlitedatabasebackend-test.cpp \
- sqlitedatabase-test.cpp \
- sqlitestatement-test.cpp \
- sqlitetable-test.cpp \
- sqlstatementbuilder-test.cpp \
token-test.cpp \
translationunitupdater-test.cpp \
unsavedfiles-test.cpp \
unsavedfile-test.cpp \
- utf8positionfromlinecolumn-test.cpp
+ utf8positionfromlinecolumn-test.cpp \
+ readexporteddiagnostics-test.cpp
}
!isEmpty(LIBTOOLING_LIBS) {