LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/queries/impl - proto_get_account.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 4 4 100.0 %
Date: 2019-03-07 14:46:43 Functions: 6 15 40.0 %

          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/queries/proto_get_account.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryType>
      12             :     GetAccount::GetAccount(QueryType &&query)
      13          72 :         : CopyableProto(std::forward<QueryType>(query)),
      14          72 :           account_{proto_->payload().get_account()} {}
      15             : 
      16             :     template GetAccount::GetAccount(GetAccount::TransportType &);
      17             :     template GetAccount::GetAccount(const GetAccount::TransportType &);
      18             :     template GetAccount::GetAccount(GetAccount::TransportType &&);
      19             : 
      20             :     GetAccount::GetAccount(const GetAccount &o) : GetAccount(o.proto_) {}
      21             : 
      22             :     GetAccount::GetAccount(GetAccount &&o) noexcept
      23          72 :         : GetAccount(std::move(o.proto_)) {}
      24             : 
      25             :     const interface::types::AccountIdType &GetAccount::accountId() const {
      26          76 :       return account_.account_id();
      27             :     }
      28             : 
      29             :   }  // namespace proto
      30             : }  // namespace shared_model

Generated by: LCOV version 1.13