diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | autotests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | autotests/utiltests.cpp (renamed from lib/omittable.cpp) | 13 |
3 files changed, 14 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ddf11680..89eb996a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ list(APPEND lib_SRCS lib/quotient_common.h lib/quotient_export.h lib/function_traits.h lib/function_traits.cpp - lib/omittable.h lib/omittable.cpp + lib/omittable.h lib/networkaccessmanager.h lib/networkaccessmanager.cpp lib/connectiondata.h lib/connectiondata.cpp lib/connection.h lib/connection.cpp diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 282ab036..9efab0d1 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -12,3 +12,4 @@ function(QUOTIENT_ADD_TEST) endfunction() quotient_add_test(NAME callcandidateseventtest) +quotient_add_test(NAME utiltests) diff --git a/lib/omittable.cpp b/autotests/utiltests.cpp index 245ae721..e3ec63d0 100644 --- a/lib/omittable.cpp +++ b/autotests/utiltests.cpp @@ -3,7 +3,9 @@ #include "omittable.h" -// Omittable<> tests +#include <QtTest/QtTest> + +// compile-time Omittable<> tests using namespace Quotient; Omittable<int> testFn(bool) { return 0; } @@ -32,3 +34,12 @@ static_assert( static_assert(std::is_same_v<Omittable<bool>, decltype(lift(visitTestFn, Omittable<int>(), Omittable<bool>()))>); + +class TestUtils : public QObject { + Q_OBJECT +private Q_SLOTS: + // TODO +}; + +QTEST_APPLESS_MAIN(TestUtils) +#include "utiltests.moc" |