LCOV - code coverage report
Current view: top level - shared_model/interfaces/common_objects/impl - signature.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 6 7 85.7 %
Date: 2018-12-05 17:11:35 Functions: 2 2 100.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/signature.hpp"
       7             : 
       8             : #include "cryptography/public_key.hpp"
       9             : #include "cryptography/signed.hpp"
      10             : 
      11             : namespace shared_model {
      12             :   namespace interface {
      13             :     bool Signature::operator==(const Signature &rhs) const {
      14        1158 :       return publicKey() == rhs.publicKey();
      15             :     }
      16             : 
      17             :     std::string Signature::toString() const {
      18        1021 :       return detail::PrettyStringBuilder()
      19        1021 :           .init("Signature")
      20        1022 :           .append("publicKey", publicKey().hex())
      21        1021 :           .append("signedData", signedData().hex())
      22        1021 :           .finalize();
      23           0 :     }
      24             :   }  // namespace interface
      25             : }  // namespace shared_model

Generated by: LCOV version 1.13