LCOV - code coverage report
Current view: top level - shared_model/interfaces/query_responses/impl - transactions_page_response.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 14 0.0 %
Date: 2019-03-07 14:46:43 Functions: 0 3 0.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 "interfaces/query_responses/transactions_page_response.hpp"
       7             : #include "interfaces/transaction.hpp"
       8             : 
       9             : namespace shared_model {
      10             :   namespace interface {
      11             : 
      12             :     std::string TransactionsPageResponse::toString() const {
      13           0 :       auto builder = detail::PrettyStringBuilder()
      14           0 :                          .init("TransactionsPageResponse")
      15           0 :                          .appendAll("transactions",
      16           0 :                                     transactions(),
      17             :                                     [](auto &tx) { return tx.toString(); })
      18           0 :                          .append("all transactions size",
      19           0 :                                  std::to_string(allTransactionsSize()));
      20           0 :       if (nextTxHash()) {
      21           0 :         return builder.append("next tx hash", nextTxHash()->hex()).finalize();
      22             :       }
      23           0 :       return builder.finalize();
      24           0 :     }
      25             : 
      26             :     bool TransactionsPageResponse::operator==(const ModelType &rhs) const {
      27           0 :       return transactions() == rhs.transactions()
      28           0 :           and nextTxHash() == rhs.nextTxHash()
      29           0 :           and allTransactionsSize() == rhs.allTransactionsSize();
      30           0 :     }
      31             : 
      32             :   }  // namespace interface
      33             : }  // namespace shared_model

Generated by: LCOV version 1.13