LCOV - code coverage report
Current view: top level - irohad/ametsuchi/impl - peer_query_wsv.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 2 2 100.0 %
Date: 2019-03-07 14:46:43 Functions: 3 3 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 "ametsuchi/impl/peer_query_wsv.hpp"
       7             : 
       8             : #include <numeric>
       9             : 
      10             : #include "ametsuchi/wsv_query.hpp"
      11             : 
      12             : namespace iroha {
      13             :   namespace ametsuchi {
      14             : 
      15             :     PeerQueryWsv::PeerQueryWsv(std::shared_ptr<WsvQuery> wsv)
      16        4831 :         : wsv_(std::move(wsv)) {}
      17             : 
      18             :     boost::optional<std::vector<PeerQuery::wPeer>>
      19             :     PeerQueryWsv::getLedgerPeers() {
      20        4287 :       return wsv_->getPeers();
      21             :     }
      22             : 
      23             :   }  // namespace ametsuchi
      24             : }  // namespace iroha

Generated by: LCOV version 1.13