LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - remove_signatory.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 5 7 71.4 %
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/remove_signatory.hpp"
       7             : 
       8             : #include "cryptography/public_key.hpp"
       9             : 
      10             : namespace shared_model {
      11             :   namespace interface {
      12             : 
      13             :     std::string RemoveSignatory::toString() const {
      14          13 :       return detail::PrettyStringBuilder()
      15          13 :           .init("RemoveSignatory")
      16          13 :           .append("account_id", accountId())
      17          13 :           .append(pubkey().toString())
      18          13 :           .finalize();
      19           0 :     }
      20             : 
      21             :     bool RemoveSignatory::operator==(const ModelType &rhs) const {
      22           0 :       return accountId() == rhs.accountId() and pubkey() == rhs.pubkey();
      23             :     }
      24             : 
      25             :   }  // namespace interface
      26             : }  // namespace shared_model

Generated by: LCOV version 1.13