Bläddra i källkod

test: make common really common

Michele Caini 2 år sedan
förälder
incheckning
2c9d37efc3
55 ändrade filer med 95 tillägg och 95 borttagningar
  1. 1 1
      test/CMakeLists.txt
  2. 0 0
      test/common/BUILD.bazel
  3. 0 0
      test/common/aggregate.h
  4. 0 0
      test/common/basic_test_allocator.hpp
  5. 0 0
      test/common/boxed_type.h
  6. 0 0
      test/common/config.h
  7. 0 0
      test/common/custom_entity.h
  8. 0 0
      test/common/empty.h
  9. 0 0
      test/common/linter.hpp
  10. 0 0
      test/common/non_comparable.h
  11. 0 0
      test/common/non_default_constructible.h
  12. 0 0
      test/common/non_movable.h
  13. 0 0
      test/common/pointer_stable.h
  14. 0 0
      test/common/throwing_allocator.hpp
  15. 0 0
      test/common/throwing_type.hpp
  16. 0 0
      test/common/tracked_memory_resource.hpp
  17. 0 0
      test/common/transparent_equal_to.h
  18. 5 5
      test/entt/container/dense_map.cpp
  19. 4 4
      test/entt/container/dense_set.cpp
  20. 1 1
      test/entt/core/algorithm.cpp
  21. 5 5
      test/entt/core/any.cpp
  22. 2 2
      test/entt/core/compressed_pair.cpp
  23. 1 1
      test/entt/core/iterator.cpp
  24. 5 5
      test/entt/core/memory.cpp
  25. 1 1
      test/entt/core/type_traits.cpp
  26. 3 3
      test/entt/entity/component.cpp
  27. 1 1
      test/entt/entity/entity.cpp
  28. 3 3
      test/entt/entity/group.cpp
  29. 1 1
      test/entt/entity/helper.cpp
  30. 6 6
      test/entt/entity/registry.cpp
  31. 2 2
      test/entt/entity/runtime_view.cpp
  32. 6 6
      test/entt/entity/sigh_mixin.cpp
  33. 2 2
      test/entt/entity/snapshot.cpp
  34. 4 4
      test/entt/entity/sparse_set.cpp
  35. 7 7
      test/entt/entity/storage.cpp
  36. 2 2
      test/entt/entity/storage_entity.cpp
  37. 3 3
      test/entt/entity/storage_no_instance.cpp
  38. 3 3
      test/entt/entity/view.cpp
  39. 2 2
      test/entt/graph/adjacency_matrix.cpp
  40. 3 3
      test/entt/graph/flow.cpp
  41. 1 1
      test/entt/locator/locator.cpp
  42. 3 3
      test/entt/meta/meta_any.cpp
  43. 3 3
      test/entt/meta/meta_container.cpp
  44. 1 1
      test/entt/meta/meta_context.cpp
  45. 1 1
      test/entt/meta/meta_data.cpp
  46. 1 1
      test/entt/meta/meta_func.cpp
  47. 1 1
      test/entt/meta/meta_pointer.cpp
  48. 1 1
      test/entt/meta/meta_type.cpp
  49. 2 2
      test/entt/meta/meta_utility.cpp
  50. 2 2
      test/entt/poly/poly.cpp
  51. 1 1
      test/entt/resource/resource.cpp
  52. 2 2
      test/entt/resource/resource_cache.cpp
  53. 1 1
      test/entt/signal/delegate.cpp
  54. 1 1
      test/entt/signal/emitter.cpp
  55. 1 1
      test/entt/signal/sigh.cpp

+ 1 - 1
test/CMakeLists.txt

@@ -44,7 +44,7 @@ else()
     set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "")
     set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "")
 endif()
 endif()
 
 
-include_directories($<TARGET_PROPERTY:EnTT,INTERFACE_INCLUDE_DIRECTORIES>)
+include_directories($<TARGET_PROPERTY:EnTT,INTERFACE_INCLUDE_DIRECTORIES> ${CMAKE_CURRENT_SOURCE_DIR})
 add_compile_options($<TARGET_PROPERTY:EnTT,INTERFACE_COMPILE_OPTIONS>)
 add_compile_options($<TARGET_PROPERTY:EnTT,INTERFACE_COMPILE_OPTIONS>)
 
 
 function(SETUP_TARGET TARGET_NAME)
 function(SETUP_TARGET TARGET_NAME)

+ 0 - 0
test/entt/common/BUILD.bazel → test/common/BUILD.bazel


+ 0 - 0
test/entt/common/aggregate.h → test/common/aggregate.h


+ 0 - 0
test/entt/common/basic_test_allocator.hpp → test/common/basic_test_allocator.hpp


+ 0 - 0
test/entt/common/boxed_type.h → test/common/boxed_type.h


+ 0 - 0
test/entt/common/config.h → test/common/config.h


+ 0 - 0
test/entt/common/custom_entity.h → test/common/custom_entity.h


+ 0 - 0
test/entt/common/empty.h → test/common/empty.h


+ 0 - 0
test/entt/common/linter.hpp → test/common/linter.hpp


+ 0 - 0
test/entt/common/non_comparable.h → test/common/non_comparable.h


+ 0 - 0
test/entt/common/non_default_constructible.h → test/common/non_default_constructible.h


+ 0 - 0
test/entt/common/non_movable.h → test/common/non_movable.h


+ 0 - 0
test/entt/common/pointer_stable.h → test/common/pointer_stable.h


+ 0 - 0
test/entt/common/throwing_allocator.hpp → test/common/throwing_allocator.hpp


+ 0 - 0
test/entt/common/throwing_type.hpp → test/common/throwing_type.hpp


+ 0 - 0
test/entt/common/tracked_memory_resource.hpp → test/common/tracked_memory_resource.hpp


+ 0 - 0
test/entt/common/transparent_equal_to.h → test/common/transparent_equal_to.h


+ 5 - 5
test/entt/container/dense_map.cpp

@@ -9,15 +9,15 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
+#include <common/tracked_memory_resource.hpp>
+#include <common/transparent_equal_to.h>
 #include <entt/container/dense_map.hpp>
 #include <entt/container/dense_map.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/memory.hpp>
 #include <entt/core/memory.hpp>
 #include <entt/core/utility.hpp>
 #include <entt/core/utility.hpp>
-#include "../common/config.h"
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
-#include "../common/tracked_memory_resource.hpp"
-#include "../common/transparent_equal_to.h"
 
 
 TEST(DenseMap, Functionalities) {
 TEST(DenseMap, Functionalities) {
     entt::dense_map<int, int, entt::identity, test::transparent_equal_to> map;
     entt::dense_map<int, int, entt::identity, test::transparent_equal_to> map;

+ 4 - 4
test/entt/container/dense_set.cpp

@@ -9,13 +9,13 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
+#include <common/tracked_memory_resource.hpp>
+#include <common/transparent_equal_to.h>
 #include <entt/container/dense_set.hpp>
 #include <entt/container/dense_set.hpp>
 #include <entt/core/memory.hpp>
 #include <entt/core/memory.hpp>
 #include <entt/core/utility.hpp>
 #include <entt/core/utility.hpp>
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
-#include "../common/tracked_memory_resource.hpp"
-#include "../common/transparent_equal_to.h"
 
 
 TEST(DenseSet, Functionalities) {
 TEST(DenseSet, Functionalities) {
     entt::dense_set<int, entt::identity, test::transparent_equal_to> set;
     entt::dense_set<int, entt::identity, test::transparent_equal_to> set;

+ 1 - 1
test/entt/core/algorithm.cpp

@@ -1,8 +1,8 @@
 #include <array>
 #include <array>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/boxed_type.h>
 #include <entt/core/algorithm.hpp>
 #include <entt/core/algorithm.hpp>
-#include "../common/boxed_type.h"
 
 
 TEST(Algorithm, StdSort) {
 TEST(Algorithm, StdSort) {
     // well, I'm pretty sure it works, it's std::sort!!
     // well, I'm pretty sure it works, it's std::sort!!

+ 5 - 5
test/entt/core/any.cpp

@@ -8,13 +8,13 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/aggregate.h>
+#include <common/config.h>
+#include <common/linter.hpp>
+#include <common/non_comparable.h>
+#include <common/non_movable.h>
 #include <entt/core/any.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
-#include "../common/aggregate.h"
-#include "../common/config.h"
-#include "../common/linter.hpp"
-#include "../common/non_comparable.h"
-#include "../common/non_movable.h"
 
 
 template<std::size_t Len>
 template<std::size_t Len>
 struct tracker {
 struct tracker {

+ 2 - 2
test/entt/core/compressed_pair.cpp

@@ -5,9 +5,9 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/empty.h>
+#include <common/non_default_constructible.h>
 #include <entt/core/compressed_pair.hpp>
 #include <entt/core/compressed_pair.hpp>
-#include "../common/empty.h"
-#include "../common/non_default_constructible.h"
 
 
 TEST(CompressedPair, Size) {
 TEST(CompressedPair, Size) {
     struct local {
     struct local {

+ 1 - 1
test/entt/core/iterator.cpp

@@ -2,8 +2,8 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/boxed_type.h>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
-#include "../common/boxed_type.h"
 
 
 TEST(InputIteratorPointer, Functionalities) {
 TEST(InputIteratorPointer, Functionalities) {
     entt::input_iterator_pointer ptr{test::boxed_int{0}};
     entt::input_iterator_pointer ptr{test::boxed_int{0}};

+ 5 - 5
test/entt/core/memory.cpp

@@ -8,12 +8,12 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/basic_test_allocator.hpp>
+#include <common/config.h>
+#include <common/throwing_allocator.hpp>
+#include <common/throwing_type.hpp>
+#include <common/tracked_memory_resource.hpp>
 #include <entt/core/memory.hpp>
 #include <entt/core/memory.hpp>
-#include "../common/basic_test_allocator.hpp"
-#include "../common/config.h"
-#include "../common/throwing_allocator.hpp"
-#include "../common/throwing_type.hpp"
-#include "../common/tracked_memory_resource.hpp"
 
 
 TEST(ToAddress, Functionalities) {
 TEST(ToAddress, Functionalities) {
     const std::shared_ptr<int> shared = std::make_shared<int>();
     const std::shared_ptr<int> shared = std::make_shared<int>();

+ 1 - 1
test/entt/core/type_traits.cpp

@@ -6,9 +6,9 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/non_comparable.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/core/type_traits.hpp>
-#include "../common/non_comparable.h"
 
 
 struct nlohmann_json_like final {
 struct nlohmann_json_like final {
     using value_type = nlohmann_json_like;
     using value_type = nlohmann_json_like;

+ 3 - 3
test/entt/entity/component.cpp

@@ -1,9 +1,9 @@
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/boxed_type.h>
+#include <common/empty.h>
+#include <common/non_movable.h>
 #include <entt/config/config.h>
 #include <entt/config/config.h>
 #include <entt/entity/component.hpp>
 #include <entt/entity/component.hpp>
-#include "../common/boxed_type.h"
-#include "../common/empty.h"
-#include "../common/non_movable.h"
 
 
 struct self_contained {
 struct self_contained {
     static constexpr auto in_place_delete = true;
     static constexpr auto in_place_delete = true;

+ 1 - 1
test/entt/entity/entity.cpp

@@ -1,9 +1,9 @@
 #include <cstddef>
 #include <cstddef>
 #include <cstdint>
 #include <cstdint>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/custom_entity.h>
 #include <entt/config/config.h>
 #include <entt/config/config.h>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
-#include "../common/custom_entity.h"
 
 
 struct custom_entity_traits {
 struct custom_entity_traits {
     using value_type = test::custom_entity;
     using value_type = test::custom_entity;

+ 3 - 3
test/entt/entity/group.cpp

@@ -7,11 +7,11 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/boxed_type.h>
+#include <common/config.h>
+#include <common/empty.h>
 #include <entt/entity/group.hpp>
 #include <entt/entity/group.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
-#include "../common/boxed_type.h"
-#include "../common/config.h"
-#include "../common/empty.h"
 
 
 TEST(NonOwningGroup, Functionalities) {
 TEST(NonOwningGroup, Functionalities) {
     entt::registry registry;
     entt::registry registry;

+ 1 - 1
test/entt/entity/helper.cpp

@@ -1,10 +1,10 @@
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/pointer_stable.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/entity/component.hpp>
 #include <entt/entity/component.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/helper.hpp>
 #include <entt/entity/helper.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
-#include "../common/pointer_stable.h"
 
 
 struct clazz {
 struct clazz {
     void func(entt::registry &, entt::entity curr) {
     void func(entt::registry &, entt::entity curr) {

+ 6 - 6
test/entt/entity/registry.cpp

@@ -9,18 +9,18 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/aggregate.h>
+#include <common/config.h>
+#include <common/custom_entity.h>
+#include <common/empty.h>
+#include <common/non_default_constructible.h>
+#include <common/pointer_stable.h>
 #include <entt/config/config.h>
 #include <entt/config/config.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include <entt/entity/view.hpp>
-#include "../common/aggregate.h"
-#include "../common/config.h"
-#include "../common/custom_entity.h"
-#include "../common/empty.h"
-#include "../common/non_default_constructible.h"
-#include "../common/pointer_stable.h"
 
 
 struct no_eto_type {
 struct no_eto_type {
     static constexpr std::size_t page_size = 1024u;
     static constexpr std::size_t page_size = 1024u;

+ 2 - 2
test/entt/entity/runtime_view.cpp

@@ -2,11 +2,11 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
+#include <common/pointer_stable.h>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/runtime_view.hpp>
 #include <entt/entity/runtime_view.hpp>
-#include "../common/linter.hpp"
-#include "../common/pointer_stable.h"
 
 
 template<typename Type>
 template<typename Type>
 struct RuntimeView: testing::Test {
 struct RuntimeView: testing::Test {

+ 6 - 6
test/entt/entity/sigh_mixin.cpp

@@ -5,6 +5,12 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/custom_entity.h>
+#include <common/linter.hpp>
+#include <common/non_default_constructible.h>
+#include <common/pointer_stable.h>
+#include <common/throwing_allocator.hpp>
+#include <common/throwing_type.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/component.hpp>
 #include <entt/entity/component.hpp>
@@ -12,12 +18,6 @@
 #include <entt/entity/mixin.hpp>
 #include <entt/entity/mixin.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/storage.hpp>
 #include <entt/entity/storage.hpp>
-#include "../common/custom_entity.h"
-#include "../common/linter.hpp"
-#include "../common/non_default_constructible.h"
-#include "../common/pointer_stable.h"
-#include "../common/throwing_allocator.hpp"
-#include "../common/throwing_type.hpp"
 
 
 template<typename Registry>
 template<typename Registry>
 void listener(std::size_t &counter, Registry &, typename Registry::entity_type) {
 void listener(std::size_t &counter, Registry &, typename Registry::entity_type) {

+ 2 - 2
test/entt/entity/snapshot.cpp

@@ -4,14 +4,14 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/empty.h>
 #include <entt/core/any.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/snapshot.hpp>
 #include <entt/entity/snapshot.hpp>
 #include <entt/signal/sigh.hpp>
 #include <entt/signal/sigh.hpp>
-#include "../common/config.h"
-#include "../common/empty.h"
 
 
 struct shadow {
 struct shadow {
     entt::entity target{entt::null};
     entt::entity target{entt::null};

+ 4 - 4
test/entt/entity/sparse_set.cpp

@@ -6,15 +6,15 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/custom_entity.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
 #include <entt/config/config.h>
 #include <entt/config/config.h>
 #include <entt/core/any.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/sparse_set.hpp>
 #include <entt/entity/sparse_set.hpp>
-#include "../common/config.h"
-#include "../common/custom_entity.h"
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
 
 
 struct custom_entity_traits {
 struct custom_entity_traits {
     using value_type = test::custom_entity;
     using value_type = test::custom_entity;

+ 7 - 7
test/entt/entity/storage.cpp

@@ -7,18 +7,18 @@
 #include <unordered_set>
 #include <unordered_set>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/aggregate.h>
+#include <common/config.h>
+#include <common/linter.hpp>
+#include <common/pointer_stable.h>
+#include <common/throwing_allocator.hpp>
+#include <common/throwing_type.hpp>
+#include <common/tracked_memory_resource.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/component.hpp>
 #include <entt/entity/component.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/storage.hpp>
 #include <entt/entity/storage.hpp>
-#include "../common/aggregate.h"
-#include "../common/config.h"
-#include "../common/linter.hpp"
-#include "../common/pointer_stable.h"
-#include "../common/throwing_allocator.hpp"
-#include "../common/throwing_type.hpp"
-#include "../common/tracked_memory_resource.hpp"
 
 
 struct update_from_destructor {
 struct update_from_destructor {
     update_from_destructor(entt::storage<update_from_destructor> &ref, entt::entity other)
     update_from_destructor(entt::storage<update_from_destructor> &ref, entt::entity other)

+ 2 - 2
test/entt/entity/storage_entity.cpp

@@ -7,12 +7,12 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/linter.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/storage.hpp>
 #include <entt/entity/storage.hpp>
-#include "../common/config.h"
-#include "../common/linter.hpp"
 
 
 TEST(StorageEntity, Constructors) {
 TEST(StorageEntity, Constructors) {
     entt::storage<entt::entity> pool;
     entt::storage<entt::entity> pool;

+ 3 - 3
test/entt/entity/storage_no_instance.cpp

@@ -6,13 +6,13 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/empty.h>
+#include <common/linter.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/storage.hpp>
 #include <entt/entity/storage.hpp>
-#include "../common/config.h"
-#include "../common/empty.h"
-#include "../common/linter.hpp"
 
 
 template<typename Type>
 template<typename Type>
 struct StorageNoInstance: testing::Test {
 struct StorageNoInstance: testing::Test {

+ 3 - 3
test/entt/entity/view.cpp

@@ -5,15 +5,15 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/boxed_type.h>
+#include <common/empty.h>
+#include <common/pointer_stable.h>
 #include <entt/core/any.hpp>
 #include <entt/core/any.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/entity.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/view.hpp>
 #include <entt/entity/view.hpp>
-#include "../common/boxed_type.h"
-#include "../common/empty.h"
-#include "../common/pointer_stable.h"
 
 
 TEST(SingleComponentView, Functionalities) {
 TEST(SingleComponentView, Functionalities) {
     entt::registry registry;
     entt::registry registry;

+ 2 - 2
test/entt/graph/adjacency_matrix.cpp

@@ -2,9 +2,9 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
 #include <entt/graph/adjacency_matrix.hpp>
 #include <entt/graph/adjacency_matrix.hpp>
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
 
 
 TEST(AdjacencyMatrix, Resize) {
 TEST(AdjacencyMatrix, Resize) {
     entt::adjacency_matrix<entt::directed_tag> adjacency_matrix{2};
     entt::adjacency_matrix<entt::directed_tag> adjacency_matrix{2};

+ 3 - 3
test/entt/graph/flow.cpp

@@ -3,11 +3,11 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/graph/flow.hpp>
 #include <entt/graph/flow.hpp>
-#include "../common/config.h"
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
 
 
 TEST(Flow, Constructors) {
 TEST(Flow, Constructors) {
     entt::flow flow{};
     entt::flow flow{};

+ 1 - 1
test/entt/locator/locator.cpp

@@ -1,7 +1,7 @@
 #include <memory>
 #include <memory>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/locator/locator.hpp>
 #include <entt/locator/locator.hpp>
-#include "../common/config.h"
 
 
 struct base_service {
 struct base_service {
     virtual ~base_service() = default;
     virtual ~base_service() = default;

+ 3 - 3
test/entt/meta/meta_any.cpp

@@ -4,13 +4,13 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/linter.hpp>
+#include <common/non_comparable.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/meta/factory.hpp>
 #include <entt/meta/factory.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
-#include "../common/config.h"
-#include "../common/linter.hpp"
-#include "../common/non_comparable.h"
 
 
 struct clazz_t {
 struct clazz_t {
     void member(int i) {
     void member(int i) {

+ 3 - 3
test/entt/meta/meta_container.cpp

@@ -6,15 +6,15 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/empty.h>
+#include <common/non_default_constructible.h>
 #include <entt/container/dense_map.hpp>
 #include <entt/container/dense_map.hpp>
 #include <entt/container/dense_set.hpp>
 #include <entt/container/dense_set.hpp>
 #include <entt/meta/container.hpp>
 #include <entt/meta/container.hpp>
 #include <entt/meta/factory.hpp>
 #include <entt/meta/factory.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
-#include "../common/config.h"
-#include "../common/empty.h"
-#include "../common/non_default_constructible.h"
 
 
 TEST(MetaContainer, Invalid) {
 TEST(MetaContainer, Invalid) {
     ASSERT_FALSE(entt::meta_any{0}.as_sequence_container());
     ASSERT_FALSE(entt::meta_any{0}.as_sequence_container());

+ 1 - 1
test/entt/meta/meta_context.cpp

@@ -3,6 +3,7 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/empty.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/meta/container.hpp>
 #include <entt/meta/container.hpp>
@@ -11,7 +12,6 @@
 #include <entt/meta/pointer.hpp>
 #include <entt/meta/pointer.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/template.hpp>
 #include <entt/meta/template.hpp>
-#include "../common/empty.h"
 
 
 struct base {
 struct base {
     base() = default;
     base() = default;

+ 1 - 1
test/entt/meta/meta_data.cpp

@@ -2,6 +2,7 @@
 #include <string>
 #include <string>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/locator/locator.hpp>
 #include <entt/locator/locator.hpp>
@@ -12,7 +13,6 @@
 #include <entt/meta/policy.hpp>
 #include <entt/meta/policy.hpp>
 #include <entt/meta/range.hpp>
 #include <entt/meta/range.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
-#include "../common/config.h"
 
 
 struct base_t {
 struct base_t {
     virtual ~base_t() = default;
     virtual ~base_t() = default;

+ 1 - 1
test/entt/meta/meta_func.cpp

@@ -1,6 +1,7 @@
 #include <cstddef>
 #include <cstddef>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/utility.hpp>
 #include <entt/core/utility.hpp>
 #include <entt/entity/registry.hpp>
 #include <entt/entity/registry.hpp>
@@ -9,7 +10,6 @@
 #include <entt/meta/policy.hpp>
 #include <entt/meta/policy.hpp>
 #include <entt/meta/range.hpp>
 #include <entt/meta/range.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
-#include "../common/config.h"
 
 
 struct base_t {
 struct base_t {
     base_t() = default;
     base_t() = default;

+ 1 - 1
test/entt/meta/meta_pointer.cpp

@@ -2,12 +2,12 @@
 #include <type_traits>
 #include <type_traits>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/meta/adl_pointer.hpp>
 #include <entt/meta/adl_pointer.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/pointer.hpp>
 #include <entt/meta/pointer.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/type_traits.hpp>
 #include <entt/meta/type_traits.hpp>
-#include "../common/config.h"
 
 
 template<typename Type>
 template<typename Type>
 struct wrapped_shared_ptr {
 struct wrapped_shared_ptr {

+ 1 - 1
test/entt/meta/meta_type.cpp

@@ -5,6 +5,7 @@
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/utility.hpp>
 #include <entt/core/utility.hpp>
@@ -17,7 +18,6 @@
 #include <entt/meta/range.hpp>
 #include <entt/meta/range.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/template.hpp>
 #include <entt/meta/template.hpp>
-#include "../common/config.h"
 
 
 template<typename Type>
 template<typename Type>
 void set(Type &prop, Type value) {
 void set(Type &prop, Type value) {

+ 2 - 2
test/entt/meta/meta_utility.cpp

@@ -2,13 +2,13 @@
 #include <iterator>
 #include <iterator>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/empty.h>
 #include <entt/core/type_traits.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/meta.hpp>
 #include <entt/meta/policy.hpp>
 #include <entt/meta/policy.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/resolve.hpp>
 #include <entt/meta/utility.hpp>
 #include <entt/meta/utility.hpp>
-#include "../common/config.h"
-#include "../common/empty.h"
 
 
 struct clazz {
 struct clazz {
     void setter(int v) {
     void setter(int v) {

+ 2 - 2
test/entt/poly/poly.cpp

@@ -3,11 +3,11 @@
 #include <cstdint>
 #include <cstdint>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
+#include <common/linter.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/core/type_traits.hpp>
 #include <entt/poly/poly.hpp>
 #include <entt/poly/poly.hpp>
-#include "../common/config.h"
-#include "../common/linter.hpp"
 
 
 template<typename Base>
 template<typename Base>
 struct common_type: Base {
 struct common_type: Base {

+ 1 - 1
test/entt/resource/resource.cpp

@@ -1,9 +1,9 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/core/type_info.hpp>
 #include <entt/resource/resource.hpp>
 #include <entt/resource/resource.hpp>
-#include "../common/linter.hpp"
 
 
 struct base {
 struct base {
     virtual ~base() = default;
     virtual ~base() = default;

+ 2 - 2
test/entt/resource/resource_cache.cpp

@@ -3,14 +3,14 @@
 #include <tuple>
 #include <tuple>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
+#include <common/throwing_allocator.hpp>
 #include <entt/container/dense_map.hpp>
 #include <entt/container/dense_map.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/hashed_string.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/core/iterator.hpp>
 #include <entt/resource/cache.hpp>
 #include <entt/resource/cache.hpp>
 #include <entt/resource/loader.hpp>
 #include <entt/resource/loader.hpp>
 #include <entt/resource/resource.hpp>
 #include <entt/resource/resource.hpp>
-#include "../common/linter.hpp"
-#include "../common/throwing_allocator.hpp"
 
 
 struct broken_tag {};
 struct broken_tag {};
 struct with_callback {};
 struct with_callback {};

+ 1 - 1
test/entt/signal/delegate.cpp

@@ -1,8 +1,8 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/config.h>
 #include <entt/signal/delegate.hpp>
 #include <entt/signal/delegate.hpp>
-#include "../common/config.h"
 
 
 int power_of_two(const int &i) {
 int power_of_two(const int &i) {
     return i * i;
     return i * i;

+ 1 - 1
test/entt/signal/emitter.cpp

@@ -2,8 +2,8 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
 #include <entt/signal/emitter.hpp>
 #include <entt/signal/emitter.hpp>
-#include "../common/linter.hpp"
 
 
 struct test_emitter: entt::emitter<test_emitter> {
 struct test_emitter: entt::emitter<test_emitter> {
     using entt::emitter<test_emitter>::emitter;
     using entt::emitter<test_emitter>::emitter;

+ 1 - 1
test/entt/signal/sigh.cpp

@@ -1,8 +1,8 @@
 #include <memory>
 #include <memory>
 #include <utility>
 #include <utility>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+#include <common/linter.hpp>
 #include <entt/signal/sigh.hpp>
 #include <entt/signal/sigh.hpp>
-#include "../common/linter.hpp"
 
 
 struct sigh_listener {
 struct sigh_listener {
     static void f(int &v) {
     static void f(int &v) {