LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/query_responses/impl - proto_get_block_response.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 5 6 83.3 %
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/query_responses/proto_get_block_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     GetBlockResponse::GetBlockResponse(QueryResponseType &&queryResponse)
      13           2 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      14           2 :           block_response_{proto_->block_response()},
      15           2 :           block_{block_response_.block().block_v1()} {}
      16             : 
      17             :     template GetBlockResponse::GetBlockResponse(
      18             :         GetBlockResponse::TransportType &);
      19             :     template GetBlockResponse::GetBlockResponse(
      20             :         const GetBlockResponse::TransportType &);
      21             :     template GetBlockResponse::GetBlockResponse(
      22             :         GetBlockResponse::TransportType &&);
      23             : 
      24             :     GetBlockResponse::GetBlockResponse(const GetBlockResponse &o)
      25           0 :         : GetBlockResponse(o.proto_) {}
      26             : 
      27             :     GetBlockResponse::GetBlockResponse(GetBlockResponse &&o)
      28           2 :         : GetBlockResponse(std::move(o.proto_)) {}
      29             : 
      30             :     const interface::Block &GetBlockResponse::block() const {
      31           1 :       return block_;
      32             :     }
      33             : 
      34             :   }  // namespace proto
      35             : }  // namespace shared_model

Generated by: LCOV version 1.13