LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_add_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_add_signatory.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     AddSignatory::AddSignatory(CommandType &&command)
      13        1037 :         : CopyableProto(std::forward<CommandType>(command)),
      14        1037 :           add_signatory_{proto_->add_signatory()},
      15             :           pubkey_{[this] {
      16         494 :             return interface::types::PubkeyType(add_signatory_.public_key());
      17        1037 :           }} {}
      18             : 
      19             :     template AddSignatory::AddSignatory(AddSignatory::TransportType &);
      20             :     template AddSignatory::AddSignatory(const AddSignatory::TransportType &);
      21             :     template AddSignatory::AddSignatory(AddSignatory::TransportType &&);
      22             : 
      23             :     AddSignatory::AddSignatory(const AddSignatory &o)
      24           0 :         : AddSignatory(o.proto_) {}
      25             : 
      26             :     AddSignatory::AddSignatory(AddSignatory &&o) noexcept
      27        1037 :         : AddSignatory(std::move(o.proto_)) {}
      28             : 
      29             :     const interface::types::AccountIdType &AddSignatory::accountId() const {
      30         589 :       return add_signatory_.account_id();
      31             :     }
      32             : 
      33             :     const interface::types::PubkeyType &AddSignatory::pubkey() const {
      34         589 :       return *pubkey_;
      35             :     }
      36             : 
      37             :   }  // namespace proto
      38             : }  // namespace shared_model

Generated by: LCOV version 1.13