LCOV - code coverage report
Current view: top level - irohad/model - asset.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 1 0.0 %
Date: 2019-03-07 14:46:43 Functions: 6 11 54.5 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_ASSET_HPP
       7             : #define IROHA_ASSET_HPP
       8             : 
       9             : #include <string>
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Asset Data Model
      16             :      */
      17             :     struct Asset {
      18             :       Asset() = default;
      19             : 
      20             :       Asset(std::string asset_id, std::string domain_id, uint8_t precision)
      21           0 :           : asset_id(asset_id), domain_id(domain_id), precision(precision) {}
      22             :       /**
      23             :        * Asset unique identifier
      24             :        */
      25             :       std::string asset_id;
      26             : 
      27             :       std::string domain_id;
      28             : 
      29             :       /**
      30             :        * Precision of asset
      31             :        */
      32             :       uint8_t precision;
      33             :     };
      34             :   }  // namespace model
      35             : }  // namespace iroha
      36             : 
      37             : #endif  // IROHA_ASSET_HPP

Generated by: LCOV version 1.13