LCOV - code coverage report
Current view: top level - shared_model/cryptography/model_impl - public_key.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 4 5 80.0 %
Date: 2019-03-07 14:46:43 Functions: 5 5 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 "cryptography/public_key.hpp"
       7             : 
       8             : #include "utils/string_builder.hpp"
       9             : 
      10             : namespace shared_model {
      11             :   namespace crypto {
      12             : 
      13             :     PublicKey::PublicKey(const std::string &public_key) : Blob(public_key) {}
      14             : 
      15             :     PublicKey::PublicKey(const Blob &blob) : Blob(blob.blob()) {}
      16             : 
      17             :     std::string PublicKey::toString() const {
      18        3600 :       return detail::PrettyStringBuilder()
      19        3600 :           .init("PublicKey")
      20        3600 :           .append(Blob::hex())
      21        3600 :           .finalize();
      22           0 :     }
      23             : 
      24             :   }  // namespace crypto
      25             : }  // namespace shared_model

Generated by: LCOV version 1.13