Skip to content
Snippets Groups Projects
Verified Commit c5cd6c22 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'f-move-entity' into f-async-execute

parents d3e7ef00 6583f355
No related branches found
No related tags found
2 merge requests!42Release 0.2.0,!28F async execute
Pipeline #14460 passed
Pipeline: caosdb-cppinttest

#14474

    ......@@ -20,7 +20,7 @@
    cmake_minimum_required(VERSION 3.13)
    set(libcaosdb_VERSION 0.0.19)
    set(libcaosdb_VERSION 0.0.20)
    set(libcaosdb_COMPATIBLE_SERVER_VERSION_MAJOR 0)
    set(libcaosdb_COMPATIBLE_SERVER_VERSION_MINOR 5)
    set(libcaosdb_COMPATIBLE_SERVER_VERSION_PATCH 0)
    ......
    ......@@ -3,7 +3,7 @@ from conans import ConanFile, CMake, tools
    class CaosdbConan(ConanFile):
    name = "caosdb"
    version = "0.0.19"
    version = "0.0.20"
    license = "AGPL-3.0-or-later"
    author = "Timm C. Fitschen <t.fitschen@indiscale.com>"
    url = "https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git"
    ......
    ......@@ -194,7 +194,8 @@ public:
    inline auto operator==(const RepeatedPtrFieldWrapper<T, P> &other) const noexcept -> bool {
    if (this->wrapped != nullptr && other.wrapped != nullptr && this->size() == other.size()) {
    for (int i = 0; i < this->size(); i++) {
    if(this->wrapped->Get(i).SerializeAsString() != other.wrapped->Get(i).SerializeAsString()) {
    if (this->wrapped->Get(i).SerializeAsString() !=
    other.wrapped->Get(i).SerializeAsString()) {
    return false;
    }
    }
    ......
    ......@@ -152,16 +152,19 @@ TEST(test_entity, test_copy_constructor) {
    property.set_description("the prop-desc");
    property.set_name("the-prop-name");
    property.mutable_value()->mutable_list_values()->mutable_values()->Add()->set_double_value(25.5);
    property.mutable_data_type()->mutable_list_data_type()->set_atomic_data_type(ProtoAtomicDataType::ATOMIC_DATA_TYPE_DOUBLE);
    property.mutable_data_type()->mutable_list_data_type()->set_atomic_data_type(
    ProtoAtomicDataType::ATOMIC_DATA_TYPE_DOUBLE);
    EntityResponse entity_response;
    entity_response.mutable_entity()->set_id("the-id");
    entity_response.mutable_entity()->set_name("the-name");
    entity_response.mutable_entity()->set_role(ProtoEntityRole::ENTITY_ROLE_RECORD);
    entity_response.mutable_entity()->set_description("the description");
    entity_response.mutable_entity()->set_unit("the-unit");
    entity_response.mutable_entity()->mutable_value()->mutable_scalar_value()->set_string_value("the-value");
    entity_response.mutable_entity()->mutable_value()->mutable_scalar_value()->set_string_value(
    "the-value");
    entity_response.mutable_entity()->mutable_version()->set_id("version-id");
    entity_response.mutable_entity()->mutable_data_type()->mutable_reference_data_type()->set_name("refname");
    entity_response.mutable_entity()->mutable_data_type()->mutable_reference_data_type()->set_name(
    "refname");
    entity_response.mutable_entity()->mutable_file_descriptor();
    entity_response.mutable_entity()->mutable_properties()->Add()->CopyFrom(property);
    entity_response.mutable_entity()->mutable_parents()->Add()->CopyFrom(parent);
    ......@@ -204,7 +207,8 @@ TEST(test_entity, test_move_constructor) {
    property.set_description("the prop-desc");
    property.set_name("the-prop-name");
    property.mutable_value()->mutable_list_values()->mutable_values()->Add()->set_double_value(25.5);
    property.mutable_data_type()->mutable_list_data_type()->set_atomic_data_type(ProtoAtomicDataType::ATOMIC_DATA_TYPE_DOUBLE);
    property.mutable_data_type()->mutable_list_data_type()->set_atomic_data_type(
    ProtoAtomicDataType::ATOMIC_DATA_TYPE_DOUBLE);
    EntityResponse entity_response;
    entity_response.mutable_errors()->Add()->set_code(25);
    entity_response.mutable_errors()->Mutable(0)->set_description("asdf");
    ......@@ -217,9 +221,11 @@ TEST(test_entity, test_move_constructor) {
    entity_response.mutable_entity()->set_role(ProtoEntityRole::ENTITY_ROLE_RECORD);
    entity_response.mutable_entity()->set_description("the description");
    entity_response.mutable_entity()->set_unit("the-unit");
    entity_response.mutable_entity()->mutable_value()->mutable_scalar_value()->set_string_value("the-value");
    entity_response.mutable_entity()->mutable_value()->mutable_scalar_value()->set_string_value(
    "the-value");
    entity_response.mutable_entity()->mutable_version()->set_id("version-id");
    entity_response.mutable_entity()->mutable_data_type()->mutable_reference_data_type()->set_name("refname");
    entity_response.mutable_entity()->mutable_data_type()->mutable_reference_data_type()->set_name(
    "refname");
    entity_response.mutable_entity()->mutable_file_descriptor();
    entity_response.mutable_entity()->mutable_properties()->Add()->CopyFrom(property);
    entity_response.mutable_entity()->mutable_parents()->Add()->CopyFrom(parent);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment