summaryrefslogtreecommitdiffhomepage
path: root/editor/tests-private.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-20 04:20:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-20 04:20:51 +0200
commit9099eec2a638bcf61bf46e86740458d933197577 (patch)
treedca1ae5c0f8fc89ebf55624b2988733d094af3bc /editor/tests-private.hpp
parente8a7d188eb186204dc8d8e25aa732e14fac96594 (diff)
wip tests
Diffstat (limited to 'editor/tests-private.hpp')
-rw-r--r--editor/tests-private.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/editor/tests-private.hpp b/editor/tests-private.hpp
new file mode 100644
index 00000000..777daba5
--- /dev/null
+++ b/editor/tests-private.hpp
@@ -0,0 +1,36 @@
+#pragma once
+#include "compat/defs.hpp"
+#include "tests.hpp"
+#include "src/point.hpp"
+#include <vector>
+#include <variant>
+
+namespace floormat::tests {
+
+template<typename... Ts> struct overloaded : Ts... { using Ts::operator()...; };
+template<typename... Ts> overloaded(Ts...) -> overloaded<Ts...>;
+
+struct path_test
+{
+ point from;
+ std::vector<point> path;
+ bool active = false;
+};
+
+using variant = std::variant<std::monostate, tests::path_test>;
+
+} // namespace floormat::tests
+
+namespace floormat {
+
+struct tests_data final : tests_data_
+{
+ fm_DECLARE_DELETED_COPY_ASSIGNMENT(tests_data);
+ tests_data();
+ ~tests_data() noexcept override;
+ //tests::variant& operator*();
+ //tests::variant* operator->();
+ tests::variant data{std::monostate{}};
+};
+
+} // namespace floormat