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: 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_block_error_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     BlockErrorResponse::BlockErrorResponse(QueryResponseType &&queryResponse)
      13           4 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      14           4 :           block_error_response{proto_->block_error_response()},
      15             :           message_{[this] { return 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           4 :         : BlockErrorResponse(std::move(o.proto_)) {}
      29             : 
      30             :     const interface::types::DescriptionType &BlockErrorResponse::message() const {
      31           1 :       return *message_;
      32             :     }
      33             : 
      34             :   }  // namespace proto
      35             : }  // namespace shared_model

Generated by: LCOV version 1.13