LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/commands/impl - proto_add_asset_quantity.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 6 7 85.7 %
Date: 2019-03-07 14:46:43 Functions: 7 16 43.8 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #include "backend/protobuf/commands/proto_add_asset_quantity.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename CommandType>
      12             :     AddAssetQuantity::AddAssetQuantity(CommandType &&command)
      13        2641 :         : CopyableProto(std::forward<CommandType>(command)),
      14        2643 :           add_asset_quantity_{proto_->add_asset_quantity()},
      15        2655 :           amount_{add_asset_quantity_.amount()} {}
      16             : 
      17             :     // TODO 30/05/2018 andrei Reduce boilerplate code in variant classes
      18             :     template AddAssetQuantity::AddAssetQuantity(
      19             :         AddAssetQuantity::TransportType &);
      20             :     template AddAssetQuantity::AddAssetQuantity(
      21             :         const AddAssetQuantity::TransportType &);
      22             :     template AddAssetQuantity::AddAssetQuantity(
      23             :         AddAssetQuantity::TransportType &&);
      24             : 
      25             :     AddAssetQuantity::AddAssetQuantity(const AddAssetQuantity &o)
      26           0 :         : AddAssetQuantity(o.proto_) {}
      27             : 
      28             :     AddAssetQuantity::AddAssetQuantity(AddAssetQuantity &&o) noexcept
      29        2657 :         : AddAssetQuantity(std::move(o.proto_)) {}
      30             : 
      31             :     const interface::types::AssetIdType &AddAssetQuantity::assetId() const {
      32        1478 :       return add_asset_quantity_.asset_id();
      33             :     }
      34             : 
      35             :     const interface::Amount &AddAssetQuantity::amount() const {
      36        1616 :       return amount_;
      37             :     }
      38             : 
      39             :   }  // namespace proto
      40             : }  // namespace shared_model

Generated by: LCOV version 1.13