LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_append_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_append_role.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     AppendRole::AppendRole(CommandType &&command)
      13        6466 :         : CopyableProto(std::forward<CommandType>(command)),
      14        6466 :           append_role_{proto_->append_role()} {}
      15             : 
      16             :     template AppendRole::AppendRole(AppendRole::TransportType &);
      17             :     template AppendRole::AppendRole(const AppendRole::TransportType &);
      18             :     template AppendRole::AppendRole(AppendRole::TransportType &&);
      19             : 
      20             :     AppendRole::AppendRole(const AppendRole &o) : AppendRole(o.proto_) {}
      21             : 
      22             :     AppendRole::AppendRole(AppendRole &&o) noexcept
      23        6466 :         : AppendRole(std::move(o.proto_)) {}
      24             : 
      25             :     const interface::types::AccountIdType &AppendRole::accountId() const {
      26        3062 :       return append_role_.account_id();
      27             :     }
      28             : 
      29             :     const interface::types::RoleIdType &AppendRole::roleName() const {
      30        3062 :       return append_role_.role_name();
      31             :     }
      32             : 
      33             :   }  // namespace proto
      34             : }  // namespace shared_model

Generated by: LCOV version 1.13