LCOV - code coverage report
Current view: top level - shared_model/interfaces/queries/impl - get_transactions.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 4 6 66.7 %
Date: 2018-12-05 17:11:35 Functions: 2 3 66.7 %

          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/queries/get_transactions.hpp"
       7             : 
       8             : #include "cryptography/hash.hpp"
       9             : #include "utils/string_builder.hpp"
      10             : 
      11             : namespace shared_model {
      12             :   namespace interface {
      13             : 
      14             :     std::string GetTransactions::toString() const {
      15          33 :       return detail::PrettyStringBuilder()
      16          33 :           .init("GetTransactions")
      17          31 :           .appendAll(transactionHashes(),
      18             :                      [](const auto &s) { return s.toString(); })
      19          33 :           .finalize();
      20           0 :     }
      21             : 
      22             :     bool GetTransactions::operator==(const ModelType &rhs) const {
      23           0 :       return transactionHashes() == rhs.transactionHashes();
      24             :     }
      25             : 
      26             :   }  // namespace interface
      27             : }  // namespace shared_model

Generated by: LCOV version 1.13