diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 04:20:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 04:20:51 +0200 |
commit | 9099eec2a638bcf61bf46e86740458d933197577 (patch) | |
tree | dca1ae5c0f8fc89ebf55624b2988733d094af3bc /editor/tests-private.hpp | |
parent | e8a7d188eb186204dc8d8e25aa732e14fac96594 (diff) |
wip tests
Diffstat (limited to 'editor/tests-private.hpp')
-rw-r--r-- | editor/tests-private.hpp | 36 |
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 |