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

Generated by: LCOV version 1.13