LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - set_quorum.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 5 8 62.5 %
Date: 2018-12-05 17:11:35 Functions: 1 2 50.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/commands/set_quorum.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace interface {
      10             : 
      11             :     std::string SetQuorum::toString() const {
      12         131 :       return detail::PrettyStringBuilder()
      13         131 :           .init("SetQuorum")
      14         131 :           .append("account_id", accountId())
      15         131 :           .append("quorum", std::to_string(newQuorum()))
      16         131 :           .finalize();
      17           0 :     }
      18             : 
      19             :     bool SetQuorum::operator==(const ModelType &rhs) const {
      20           0 :       return accountId() == rhs.accountId()
      21           0 :           and newQuorum() == rhs.newQuorum();
      22             :     }
      23             : 
      24             :   }  // namespace interface
      25             : }  // namespace shared_model

Generated by: LCOV version 1.13