LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_create_domain.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 5 6 83.3 %
Date: 2018-12-05 17:11:35 Functions: 7 16 43.8 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #include "backend/protobuf/commands/proto_create_domain.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     CreateDomain::CreateDomain(CommandType &&command)
      13        4061 :         : CopyableProto(std::forward<CommandType>(command)),
      14        4061 :           create_domain_{proto_->create_domain()} {}
      15             : 
      16             :     template CreateDomain::CreateDomain(CreateDomain::TransportType &);
      17             :     template CreateDomain::CreateDomain(const CreateDomain::TransportType &);
      18             :     template CreateDomain::CreateDomain(CreateDomain::TransportType &&);
      19             : 
      20             :     CreateDomain::CreateDomain(const CreateDomain &o)
      21           0 :         : CreateDomain(o.proto_) {}
      22             : 
      23             :     CreateDomain::CreateDomain(CreateDomain &&o) noexcept
      24        4061 :         : CreateDomain(std::move(o.proto_)) {}
      25             : 
      26             :     const interface::types::DomainIdType &CreateDomain::domainId() const {
      27        1726 :       return create_domain_.domain_id();
      28             :     }
      29             : 
      30             :     const interface::types::RoleIdType &CreateDomain::userDefaultRole() const {
      31        1726 :       return create_domain_.default_role();
      32             :     }
      33             : 
      34             :   }  // namespace proto
      35             : }  // namespace shared_model

Generated by: LCOV version 1.13