Skip to content
Snippets Groups Projects
Commit c4751eaf authored by florian's avatar florian
Browse files

ENH: Add warnings and errors

parent 6e1a16d8
No related branches found
No related tags found
1 merge request!4ENH: Allow insertion and deletion of single entities
Pipeline #11081 passed
Pipeline: caosdb-cppinttest

#11088

    This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
    ......@@ -75,6 +75,8 @@ Entity::Entity() : wrapped(Entity::CreateProtoEntity()) {
    properties.wrapped = this->wrapped->mutable_properties();
    parents.wrapped = this->wrapped->mutable_parents();
    errors.wrapped = this->wrapped->mutable_errors();
    warnings.wrapped = this->wrapped->mutable_warnings();
    infos.wrapped = this->wrapped->mutable_infos();
    }
    Entity::Entity(IdResponse *idResponse) : Entity() {
    ......
    ......@@ -103,6 +103,7 @@ TEST(test_entity, test_from_id_response) { // NOLINT
    std::cout << other_ent.ToString() << std::endl;
    EXPECT_EQ(other_ent.GetId(), "other_entity_id");
    std::cout << other_ent.GetWarnings().Size();
    EXPECT_EQ(other_ent.GetWarnings().Size(), 1);
    EXPECT_EQ(other_ent.GetWarnings().At(0).GetDescription(), "warning_desc");
    EXPECT_EQ(other_ent.GetWarnings().At(0).GetCode(),
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment