LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - transfer_asset.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 8 13 61.5 %
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/transfer_asset.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace interface {
      10             : 
      11             :     std::string TransferAsset::toString() const {
      12          67 :       return detail::PrettyStringBuilder()
      13          67 :           .init("TransferAsset")
      14          67 :           .append("src_account_id", srcAccountId())
      15          67 :           .append("dest_account_id", destAccountId())
      16          67 :           .append("asset_id", assetId())
      17          67 :           .append("description", description())
      18          67 :           .append("amount", amount().toString())
      19          67 :           .finalize();
      20           0 :     }
      21             : 
      22             :     bool TransferAsset::operator==(const ModelType &rhs) const {
      23           0 :       return srcAccountId() == rhs.srcAccountId()
      24           0 :           and destAccountId() == rhs.destAccountId()
      25           0 :           and assetId() == rhs.assetId() and amount() == rhs.amount()
      26           0 :           and description() == rhs.description();
      27             :     }
      28             : 
      29             :   }  // namespace interface
      30             : }  // namespace shared_model

Generated by: LCOV version 1.13