LCOV - code coverage report
Current view: top level - src/test - Checkpoints_tests.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 6 6 100.0 %
Date: 2015-10-12 22:39:14 Functions: 4 6 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2011-2013 The Bitcoin Core developers
       2             : // Distributed under the MIT software license, see the accompanying
       3             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4             : 
       5             : //
       6             : // Unit tests for block-chain checkpoints
       7             : //
       8             : 
       9             : #include "checkpoints.h"
      10             : 
      11             : #include "uint256.h"
      12             : #include "test/test_bitcoin.h"
      13             : #include "chainparams.h"
      14             : 
      15             : #include <boost/test/unit_test.hpp>
      16             : 
      17             : using namespace std;
      18             : 
      19           1 : BOOST_FIXTURE_TEST_SUITE(Checkpoints_tests, BasicTestingSetup)
      20             : 
      21           6 : BOOST_AUTO_TEST_CASE(sanity)
      22             : {
      23           2 :     const CCheckpointData& checkpoints = Params(CBaseChainParams::MAIN).Checkpoints();
      24           8 :     BOOST_CHECK(Checkpoints::GetTotalBlocksEstimate(checkpoints) >= 134444);
      25           1 : }
      26             : 
      27           3 : BOOST_AUTO_TEST_SUITE_END()

Generated by: LCOV version 1.11