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

MAINT: Add .clang-format from cpplib

parent 8797c768
No related branches found
No related tags found
1 merge request!3TST: Add Tests for insert and delete
Pipeline #11197 failed
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
namespace caosdb::transaction { namespace caosdb::transaction {
using caosdb::entity::Entity; using caosdb::entity::Entity;
using caosdb::entity::MessageCode; using caosdb::entity::MessageCode;
using caosdb::entity::Parent;
class test_transaction : public ::testing::Test { class test_transaction : public ::testing::Test {
protected: protected:
...@@ -163,7 +164,7 @@ TEST(test_transaction, insert_delete_with_parent) { ...@@ -163,7 +164,7 @@ TEST(test_transaction, insert_delete_with_parent) {
dynamic_cast<const UniqueResult &>(insert_transaction->GetResultSet()); dynamic_cast<const UniqueResult &>(insert_transaction->GetResultSet());
const auto &inserted_rt = insert_result_set.GetEntity(); const auto &inserted_rt = insert_result_set.GetEntity();
Entity rec; Entity rec;
rec.SetRole("Record"); rec.SetRole("Record");
rec.SetName("TestRec"); rec.SetName("TestRec");
...@@ -210,7 +211,6 @@ TEST(test_transaction, insert_delete_with_parent) { ...@@ -210,7 +211,6 @@ TEST(test_transaction, insert_delete_with_parent) {
ASSERT_TRUE(rt_delete_status.IsTerminated()); ASSERT_TRUE(rt_delete_status.IsTerminated());
ASSERT_FALSE(rt_delete_status.IsError()); ASSERT_FALSE(rt_delete_status.IsError());
} }
// TODO(fspreck) Insert a Record with a parent and a Property. Check // TODO(fspreck) Insert a Record with a parent and a Property. Check
......
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