LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - create_asset.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 6 9 66.7 %
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/commands/create_asset.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace interface {
      10             : 
      11             :     std::string CreateAsset::toString() const {
      12          67 :       return detail::PrettyStringBuilder()
      13          67 :           .init("CreateAsset")
      14          67 :           .append("asset_name", assetName())
      15          67 :           .append("domain_id", domainId())
      16          67 :           .append("precision", std::to_string(precision()))
      17          67 :           .finalize();
      18           0 :     }
      19             : 
      20             :     bool CreateAsset::operator==(const ModelType &rhs) const {
      21           0 :       return assetName() == rhs.assetName() and domainId() == rhs.domainId()
      22           0 :           and precision() == rhs.precision();
      23             :     }
      24             : 
      25             :   }  // namespace interface
      26             : }  // namespace shared_model

Generated by: LCOV version 1.13