test: prepare for refactoring
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "../../../common/boxed_type.h"
|
||||
#include "../../../common/listener.h"
|
||||
|
||||
TEST(Lib, Dispatcher) {
|
||||
TEST(Dispatcher, Plugin) {
|
||||
entt::dispatcher dispatcher;
|
||||
test::listener<test::boxed_int> listener;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "../../../common/listener.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, Dispatcher) {
|
||||
TEST(Dispatcher, Shared) {
|
||||
entt::dispatcher dispatcher;
|
||||
test::listener<test::boxed_int> listener;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../../../common/boxed_type.h"
|
||||
#include "../../../common/emitter.h"
|
||||
|
||||
TEST(Lib, Emitter) {
|
||||
TEST(Emitter, Plugin) {
|
||||
test::emitter emitter;
|
||||
int value{};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "../../../common/emitter.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, Emitter) {
|
||||
TEST(Emitter, Shared) {
|
||||
test::emitter emitter;
|
||||
int value{};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "../../../common/boxed_type.h"
|
||||
#include "userdata.h"
|
||||
|
||||
TEST(Lib, Locator) {
|
||||
TEST(Locator, Plugin) {
|
||||
entt::locator<test::boxed_int>::emplace().value = 4;
|
||||
|
||||
ASSERT_EQ(entt::locator<test::boxed_int>::value().value, 4);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "../../../common/boxed_type.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, Locator) {
|
||||
TEST(Locator, Shared) {
|
||||
entt::locator<test::boxed_int>::emplace().value = 4;
|
||||
|
||||
ASSERT_EQ(entt::locator<test::boxed_int>::value().value, 4);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <entt/meta/resolve.hpp>
|
||||
#include "userdata.h"
|
||||
|
||||
TEST(Lib, Meta) {
|
||||
TEST(Meta, Plugin) {
|
||||
using namespace entt::literals;
|
||||
|
||||
ASSERT_FALSE(entt::resolve("boxed_int"_hs));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <entt/meta/resolve.hpp>
|
||||
#include "userdata.h"
|
||||
|
||||
TEST(Lib, Meta) {
|
||||
TEST(Meta, PluginStd) {
|
||||
using namespace entt::literals;
|
||||
|
||||
ASSERT_FALSE(entt::resolve("boxed_int"_hs));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "../../../common/empty.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, Meta) {
|
||||
TEST(Meta, Shared) {
|
||||
using namespace entt::literals;
|
||||
|
||||
ASSERT_FALSE(entt::resolve("boxed_int"_hs));
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "../../../common/boxed_type.h"
|
||||
#include "../../../common/empty.h"
|
||||
|
||||
TEST(Lib, Registry) {
|
||||
TEST(Registry, Plugin) {
|
||||
constexpr auto count = 3;
|
||||
entt::registry registry;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "../../../common/empty.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, Registry) {
|
||||
TEST(Registry, Shared) {
|
||||
constexpr auto count = 3;
|
||||
entt::registry registry;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <cr.h>
|
||||
#include "../types.h"
|
||||
|
||||
TEST(Lib, View) {
|
||||
TEST(View, Plugin) {
|
||||
view_type view{};
|
||||
|
||||
cr_plugin ctx;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "../types.h"
|
||||
#include "lib.h"
|
||||
|
||||
TEST(Lib, View) {
|
||||
TEST(View, Shared) {
|
||||
view_type view{};
|
||||
const void *storage = filter(view);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user