added more tests
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
|
||||
namespace matador::object {
|
||||
|
||||
basic_object_info::basic_object_info(schema_node &node, const std::type_index type_index)
|
||||
basic_object_info::basic_object_info(schema_node &node, const std::type_index type_index, object_definition &&definition)
|
||||
: node_(node)
|
||||
, type_index_(type_index) {}
|
||||
, type_index_(type_index)
|
||||
, definition_(std::move(definition)) {}
|
||||
|
||||
std::type_index basic_object_info::type_index() const {
|
||||
return type_index_;
|
||||
@@ -17,4 +18,9 @@ std::type_index basic_object_info::type_index() const {
|
||||
std::string basic_object_info::name() const {
|
||||
return node_.name();
|
||||
}
|
||||
|
||||
const object_definition& basic_object_info::definition() const {
|
||||
return definition_;
|
||||
}
|
||||
|
||||
} // namespace matador::object
|
||||
|
||||
Reference in New Issue
Block a user