LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/query_responses/impl - proto_asset_response.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 4 5 80.0 %
Date: 2018-12-05 17:11:35 Functions: 7 20 35.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/query_responses/proto_asset_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     AssetResponse::AssetResponse(QueryResponseType &&queryResponse)
      13           3 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      14           3 :           assetResponse_{proto_->asset_response()},
      15             :           asset_{[this] { return Asset(assetResponse_.asset()); }} {}
      16             : 
      17             :     template AssetResponse::AssetResponse(AssetResponse::TransportType &);
      18             :     template AssetResponse::AssetResponse(const AssetResponse::TransportType &);
      19             :     template AssetResponse::AssetResponse(AssetResponse::TransportType &&);
      20             : 
      21             :     AssetResponse::AssetResponse(const AssetResponse &o)
      22           0 :         : AssetResponse(o.proto_) {}
      23             : 
      24             :     AssetResponse::AssetResponse(AssetResponse &&o)
      25           3 :         : AssetResponse(std::move(o.proto_)) {}
      26             : 
      27             :     const Asset &AssetResponse::asset() const {
      28           6 :       return *asset_;
      29             :     }
      30             : 
      31             :   }  // namespace proto
      32             : }  // namespace shared_model

Generated by: LCOV version 1.13