LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_remove_signatory.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 7 8 87.5 %
Date: 2018-12-05 17:11:35 Functions: 8 21 38.1 %

          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_remove_signatory.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     RemoveSignatory::RemoveSignatory(CommandType &&command)
      13         108 :         : CopyableProto(std::forward<CommandType>(command)),
      14         108 :           remove_signatory_{proto_->remove_signatory()},
      15             :           pubkey_{[this] {
      16          64 :             return interface::types::PubkeyType(remove_signatory_.public_key());
      17         108 :           }} {}
      18             : 
      19             :     template RemoveSignatory::RemoveSignatory(RemoveSignatory::TransportType &);
      20             :     template RemoveSignatory::RemoveSignatory(
      21             :         const RemoveSignatory::TransportType &);
      22             :     template RemoveSignatory::RemoveSignatory(
      23             :         RemoveSignatory::TransportType &&);
      24             : 
      25             :     RemoveSignatory::RemoveSignatory(const RemoveSignatory &o)
      26           0 :         : RemoveSignatory(o.proto_) {}
      27             : 
      28             :     RemoveSignatory::RemoveSignatory(RemoveSignatory &&o) noexcept
      29         108 :         : RemoveSignatory(std::move(o.proto_)) {}
      30             : 
      31             :     const interface::types::AccountIdType &RemoveSignatory::accountId() const {
      32          75 :       return remove_signatory_.account_id();
      33             :     }
      34             : 
      35             :     const interface::types::PubkeyType &RemoveSignatory::pubkey() const {
      36          75 :       return *pubkey_;
      37             :     }
      38             : 
      39             :   }  // namespace proto
      40             : }  // namespace shared_model

Generated by: LCOV version 1.13