LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_detach_role.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 5 5 100.0 %
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_detach_role.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     DetachRole::DetachRole(CommandType &&command)
      13        6180 :         : CopyableProto(std::forward<CommandType>(command)),
      14        6180 :           detach_role_{proto_->detach_role()} {}
      15             : 
      16             :     template DetachRole::DetachRole(DetachRole::TransportType &);
      17             :     template DetachRole::DetachRole(const DetachRole::TransportType &);
      18             :     template DetachRole::DetachRole(DetachRole::TransportType &&);
      19             : 
      20             :     DetachRole::DetachRole(const DetachRole &o) : DetachRole(o.proto_) {}
      21             : 
      22             :     DetachRole::DetachRole(DetachRole &&o) noexcept
      23        6180 :         : DetachRole(std::move(o.proto_)) {}
      24             : 
      25             :     const interface::types::AccountIdType &DetachRole::accountId() const {
      26        2917 :       return detach_role_.account_id();
      27             :     }
      28             : 
      29             :     const interface::types::RoleIdType &DetachRole::roleName() const {
      30        2917 :       return detach_role_.role_name();
      31             :     }
      32             : 
      33             :   }  // namespace proto
      34             : }  // namespace shared_model

Generated by: LCOV version 1.13