LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/query_responses/impl - proto_transaction_response.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 6 7 85.7 %
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_transaction_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     TransactionsResponse::TransactionsResponse(
      13             :         QueryResponseType &&queryResponse)
      14          78 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      15          78 :           transaction_response_{proto_->transactions_response()},
      16          78 :           transactions_{transaction_response_.transactions().begin(),
      17          78 :                         transaction_response_.transactions().end()} {}
      18             : 
      19             :     template TransactionsResponse::TransactionsResponse(
      20             :         TransactionsResponse::TransportType &);
      21             :     template TransactionsResponse::TransactionsResponse(
      22             :         const TransactionsResponse::TransportType &);
      23             :     template TransactionsResponse::TransactionsResponse(
      24             :         TransactionsResponse::TransportType &&);
      25             : 
      26             :     TransactionsResponse::TransactionsResponse(const TransactionsResponse &o)
      27           0 :         : TransactionsResponse(o.proto_) {}
      28             : 
      29             :     TransactionsResponse::TransactionsResponse(TransactionsResponse &&o)
      30          78 :         : TransactionsResponse(std::move(o.proto_)) {}
      31             : 
      32             :     interface::types::TransactionsCollectionType
      33             :     TransactionsResponse::transactions() const {
      34          73 :       return transactions_;
      35             :     }
      36             : 
      37             :   }  // namespace proto
      38             : }  // namespace shared_model

Generated by: LCOV version 1.13