LCOV - code coverage report
Current view: top level - shared_model/interfaces/query_responses/impl - account_response.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 1 7 14.3 %
Date: 2018-12-05 17:11:35 Functions: 1 3 33.3 %

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

Generated by: LCOV version 1.13