LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/queries/impl - proto_get_asset_info.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 4 5 80.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_asset_info.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryType>
      12             :     GetAssetInfo::GetAssetInfo(QueryType &&query)
      13          12 :         : CopyableProto(std::forward<QueryType>(query)),
      14          12 :           asset_info_{proto_->payload().get_asset_info()} {}
      15             : 
      16             :     template GetAssetInfo::GetAssetInfo(GetAssetInfo::TransportType &);
      17             :     template GetAssetInfo::GetAssetInfo(const GetAssetInfo::TransportType &);
      18             :     template GetAssetInfo::GetAssetInfo(GetAssetInfo::TransportType &&);
      19             : 
      20             :     GetAssetInfo::GetAssetInfo(const GetAssetInfo &o)
      21           0 :         : GetAssetInfo(o.proto_) {}
      22             : 
      23             :     GetAssetInfo::GetAssetInfo(GetAssetInfo &&o) noexcept
      24          12 :         : GetAssetInfo(std::move(o.proto_)) {}
      25             : 
      26             :     const interface::types::AssetIdType &GetAssetInfo::assetId() const {
      27          16 :       return asset_info_.asset_id();
      28             :     }
      29             : 
      30             :   }  // namespace proto
      31             : }  // namespace shared_model

Generated by: LCOV version 1.13