LCOV - code coverage report
Current view: top level - shared_model/interfaces/queries/impl - query.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 8 9 88.9 %
Date: 2018-12-05 17:11:35 Functions: 2 2 100.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/queries/query_variant.hpp"
       7             : 
       8             : #include "interfaces/queries/get_account.hpp"
       9             : #include "interfaces/queries/get_account_asset_transactions.hpp"
      10             : #include "interfaces/queries/get_account_assets.hpp"
      11             : #include "interfaces/queries/get_account_detail.hpp"
      12             : #include "interfaces/queries/get_account_transactions.hpp"
      13             : #include "interfaces/queries/get_asset_info.hpp"
      14             : #include "interfaces/queries/get_pending_transactions.hpp"
      15             : #include "interfaces/queries/get_role_permissions.hpp"
      16             : #include "interfaces/queries/get_roles.hpp"
      17             : #include "interfaces/queries/get_signatories.hpp"
      18             : #include "interfaces/queries/get_transactions.hpp"
      19             : #include "interfaces/queries/query_payload_meta.hpp"
      20             : #include "utils/visitor_apply_for_all.hpp"
      21             : 
      22             : using Variant = shared_model::interface::Query::QueryVariantType;
      23             : template Variant::~variant();
      24             : template Variant::variant(Variant &&);
      25             : template bool Variant::operator==(const Variant &) const;
      26             : template void Variant::destroy_content();
      27             : template int Variant::which() const;
      28             : template void Variant::indicate_which(int);
      29             : template bool Variant::using_backup() const;
      30             : template Variant::convert_copy_into::convert_copy_into(void *);
      31             : 
      32             : namespace shared_model {
      33             :   namespace interface {
      34             : 
      35             :     std::string Query::toString() const {
      36         150 :       return detail::PrettyStringBuilder()
      37         149 :           .init("Query")
      38         150 :           .append("creatorId", creatorAccountId())
      39         150 :           .append("queryCounter", std::to_string(queryCounter()))
      40         149 :           .append(Signable::toString())
      41         150 :           .append(boost::apply_visitor(detail::ToStringVisitor(), get()))
      42         150 :           .finalize();
      43           0 :     }
      44             : 
      45             :     bool Query::operator==(const ModelType &rhs) const {
      46           1 :       return this->get() == rhs.get();
      47             :     }
      48             : 
      49             :   }  // namespace interface
      50             : }  // namespace shared_model

Generated by: LCOV version 1.13