LCOV - code coverage report
Current view: top level - irohad/ordering/impl/ordering_gate_cache - ordering_gate_cache.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 1 1 100.0 %
Date: 2018-12-05 17:11:35 Functions: 1 1 100.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 "ordering/impl/ordering_gate_cache/ordering_gate_cache.hpp"
       7             : 
       8             : #include "interfaces/iroha_internal/transaction_batch.hpp"
       9             : 
      10             : namespace iroha {
      11             :   namespace ordering {
      12             :     namespace cache {
      13             : 
      14             :       size_t OrderingGateCache::BatchPointerHasher::operator()(
      15             :           const std::shared_ptr<shared_model::interface::TransactionBatch> &a)
      16             :           const {
      17          30 :         return hasher_(a->reducedHash());
      18             :       }
      19             : 
      20             :     }  // namespace cache
      21             :   }    // namespace ordering
      22             : }  // namespace iroha

Generated by: LCOV version 1.13