LCOV - code coverage report
Current view: top level - shared_model/interfaces/common_objects/impl - peer.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/common_objects/peer.hpp"
       7             : 
       8             : #include "cryptography/public_key.hpp"
       9             : 
      10             : namespace shared_model {
      11             :   namespace interface {
      12             :     std::string Peer::toString() const {
      13           2 :       return detail::PrettyStringBuilder()
      14           2 :           .init("Peer")
      15           2 :           .append("address", address())
      16           2 :           .append("pubkey", pubkey().toString())
      17           2 :           .finalize();
      18           0 :     }
      19             : 
      20             :     bool Peer::operator==(const ModelType &rhs) const {
      21           0 :       return address() == rhs.address() and pubkey() == rhs.pubkey();
      22             :     }
      23             :   }  // namespace interface
      24             : }  // namespace shared_model

Generated by: LCOV version 1.13