LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/queries/impl - proto_get_account.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 4 4 100.0 %
Date: 2018-12-05 17:11:35 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          75 :         : CopyableProto(std::forward<QueryType>(query)),
      14          75 :           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          75 :         : GetAccount(std::move(o.proto_)) {}
      24             : 
      25             :     const interface::types::AccountIdType &GetAccount::accountId() const {
      26          94 :       return account_.account_id();
      27             :     }
      28             : 
      29             :   }  // namespace proto
      30             : }  // namespace shared_model

Generated by: LCOV version 1.13