aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-06-02 19:44:09 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-06-02 19:44:09 -0700
commit5e69673563dd72f23dabc1f6d86ad684710b23bb (patch)
tree43471032352a770c7d7eb4aff05a8c00c37d9184 /test
Initial Revision.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt25
-rw-r--r--test/src/UriTests.cpp15
2 files changed, 40 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..7c3eb76
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,25 @@
+# CMakeLists.txt for UriTests
+#
+# © 2018 by Richard Walters
+
+cmake_minimum_required(VERSION 3.8)
+set(This UriTests)
+
+set(Sources
+ src/UriTests.cpp
+)
+
+add_executable(${This} ${Sources})
+set_target_properties(${This} PROPERTIES
+ FOLDER Tests
+)
+
+target_link_libraries(${This} PUBLIC
+ gtest_main
+ Uri
+)
+
+add_test(
+ NAME ${This}
+ COMMAND ${This}
+)
diff --git a/test/src/UriTests.cpp b/test/src/UriTests.cpp
new file mode 100644
index 0000000..3cb5336
--- /dev/null
+++ b/test/src/UriTests.cpp
@@ -0,0 +1,15 @@
+/**
+ * @file UriTests.cpp
+ *
+ * This module contains the unit tests of the Uri::Uri class.
+ *
+ * © 2018 by Richard Walters
+ */
+
+#include <gtest/gtest.h>
+#include <Uri/Uri.hpp>
+
+TEST(UriTests, Placeholder) {
+ Uri::Uri uri;
+ ASSERT_TRUE(true);
+}