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

          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_CREATE_ACCOUNT_HPP
       7             : #define IROHA_CREATE_ACCOUNT_HPP
       8             : 
       9             : #include "model/command.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Command for creation of a new account in the system
      16             :      */
      17             :     struct CreateAccount : public Command {
      18             :       /**
      19             :        * Account's user name
      20             :        */
      21             :       std::string account_name;
      22             : 
      23             :       /**
      24             :        * Account's domain (full name)
      25             :        */
      26             :       std::string domain_id;
      27             : 
      28             :       /**
      29             :        * Signatory of account
      30             :        */
      31             :       pubkey_t pubkey;
      32             : 
      33             :       bool operator==(const Command &command) const override;
      34             : 
      35             :       CreateAccount() {}
      36             : 
      37             :       CreateAccount(const std::string &account_name,
      38             :                     const std::string &domain_id,
      39             :                     const pubkey_t &pubkey)
      40           0 :           : account_name(account_name), domain_id(domain_id), pubkey(pubkey) {}
      41             :     };
      42             :   }  // namespace model
      43             : }  // namespace iroha
      44             : #endif  // IROHA_CREATE_ACCOUNT_HPP

Generated by: LCOV version 1.13