LCOV - code coverage report
Current view: top level - src/wallet/test - rpc_util_tests.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 0 27 0.0 %
Date: 2023-10-05 12:38:51 Functions: 0 16 0.0 %
Branches: 0 0 -

           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                 :          0 : BOOST_AUTO_TEST_SUITE(wallet_util_tests)
      12                 :            : 
      13                 :          0 : BOOST_AUTO_TEST_CASE(util_ParseISO8601DateTime)
      14                 :            : {
      15                 :          0 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("1970-01-01T00:00:00Z"), 0);
      16                 :          0 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("1960-01-01T00:00:00Z"), 0);
      17                 :          0 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2000-01-01T00:00:01Z"), 946684801);
      18                 :          0 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2011-09-30T23:36:17Z"), 1317425777);
      19                 :          0 :     BOOST_CHECK_EQUAL(ParseISO8601DateTime("2100-12-31T23:59:59Z"), 4133980799);
      20                 :          0 : }
      21                 :            : 
      22                 :          0 : BOOST_AUTO_TEST_SUITE_END()
      23                 :            : 
      24                 :            : } // namespace wallet

Generated by: LCOV version 1.14