LCOV - code coverage report
Current view: top level - src/wallet/test - rpc_util_tests.cpp (source / functions) Coverage Total Hit
Test: total_coverage.info Lines: 100.0 % 7 7
Test Date: 2024-11-04 05:10:19 Functions: 100.0 % 2 2
Branches: 50.0 % 70 35

             Branch data     Line data    Source code
       1                 :             : // Copyright (c) 2022 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                 :             : #include <wallet/rpc/util.h>
       6                 :             : 
       7                 :             : #include <boost/test/unit_test.hpp>
       8                 :             : 
       9                 :             : namespace wallet {
      10                 :             : 
      11                 :             : BOOST_AUTO_TEST_SUITE(wallet_util_tests)
      12                 :             : 
      13   [ +  -  +  -  :           7 : BOOST_AUTO_TEST_CASE(util_ParseISO8601DateTime)
          +  -  +  -  +  
          -  +  -  +  -  
          +  -  +  -  +  
          -  +  -  +  -  
          +  -  +  -  +  
          -  +  -  +  -  
          +  -  +  -  +  
          -  +  -  +  -  
          +  -  +  -  +  
                      - ]
      14                 :             : {
      15   [ +  -  +  - ]:           1 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("1970-01-01T00:00:00Z"), 0);
      16   [ +  -  +  - ]:           1 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("1960-01-01T00:00:00Z"), 0);
      17   [ +  -  +  - ]:           1 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2000-01-01T00:00:01Z"), 946684801);
      18   [ +  -  +  - ]:           1 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2011-09-30T23:36:17Z"), 1317425777);
      19   [ +  -  +  - ]:           1 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2100-12-31T23:59:59Z"), 4133980799);
      20                 :           1 : }
      21                 :             : 
      22                 :             : BOOST_AUTO_TEST_SUITE_END()
      23                 :             : 
      24                 :             : } // namespace wallet
        

Generated by: LCOV version 2.0-1