object generating progress

This commit is contained in:
Sascha Kühl
2025-12-01 16:14:13 +01:00
parent 19b7044773
commit 422df82b7c
10 changed files with 242 additions and 33 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#include <catch2/catch_test_macros.hpp>
#include "matador/object/object.hpp"
#include "matador/object/object_generator.hpp"
#include "matador/object/repository.hpp"
#include "../test/models/author.hpp"
@@ -12,7 +13,7 @@ TEST_CASE("Generate object from type", "[object][generate]") {
auto result = repo.attach<test::author>("authors");
REQUIRE(result);
const auto obj = object::object::generate<test::book>(repo, "books");
const auto obj = object::object_generator::generate<test::book>(repo, "books");
REQUIRE(obj->name() == "books");
REQUIRE(obj->alias().empty());
REQUIRE(obj->attributes().size() == 4);