LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - add_asset_quantity.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/commands/add_asset_quantity.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace interface {
      10             : 
      11             :     std::string AddAssetQuantity::toString() const {
      12         110 :       return detail::PrettyStringBuilder()
      13         110 :           .init("AddAssetQuantity")
      14         110 :           .append("asset_id", assetId())
      15         110 :           .append("amount", amount().toString())
      16         110 :           .finalize();
      17           0 :     }
      18             : 
      19             :     bool AddAssetQuantity::operator==(const ModelType &rhs) const {
      20           0 :       return assetId() == rhs.assetId() and amount() == rhs.amount();
      21             :     }
      22             : 
      23             :   }  // namespace interface
      24             : }  // namespace shared_model

Generated by: LCOV version 1.13