LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/query_responses/impl - proto_block_error_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_block_error_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     BlockErrorResponse::BlockErrorResponse(QueryResponseType &&queryResponse)
      13           2 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      14           2 :           block_error_response{proto_->block_error_response()},
      15           2 :           message_{block_error_response.message()} {}
      16             : 
      17             :     template BlockErrorResponse::BlockErrorResponse(
      18             :         BlockErrorResponse::TransportType &);
      19             :     template BlockErrorResponse::BlockErrorResponse(
      20             :         const BlockErrorResponse::TransportType &);
      21             :     template BlockErrorResponse::BlockErrorResponse(
      22             :         BlockErrorResponse::TransportType &&);
      23             : 
      24             :     BlockErrorResponse::BlockErrorResponse(const BlockErrorResponse &o)
      25           0 :         : BlockErrorResponse(o.proto_) {}
      26             : 
      27             :     BlockErrorResponse::BlockErrorResponse(BlockErrorResponse &&o)
      28           2 :         : BlockErrorResponse(std::move(o.proto_)) {}
      29             : 
      30             :     const interface::types::DescriptionType &BlockErrorResponse::message()
      31             :         const {
      32           1 :       return message_;
      33             :     }
      34             : 
      35             :   }  // namespace proto
      36             : }  // namespace shared_model

Generated by: LCOV version 1.13