LCOV - code coverage report
Current view: top level - shared_model/cryptography/model_impl - private_key.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 5 6 83.3 %
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/private_key.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace crypto {
      10             : 
      11             :     PrivateKey::PrivateKey(const std::string &private_key)
      12         727 :         : Blob(private_key) {}
      13             : 
      14             :     PrivateKey::PrivateKey(const Blob &blob) : Blob(blob.blob()) {}
      15             : 
      16             :     std::string PrivateKey::toString() const {
      17           6 :       return detail::PrettyStringBuilder()
      18           6 :           .init("PrivateKey")
      19           6 :           .append("<Data is hidden>")
      20           6 :           .finalize();
      21           0 :     }
      22             :   }  // namespace crypto
      23             : }  // namespace shared_model

Generated by: LCOV version 1.13