LCOV - code coverage report
Current view: top level - src/kernel - checks.cpp (source / functions) Coverage Total Hit
Test: test_bitcoin_coverage.info Lines: 0.0 % 4 0
Test Date: 2024-08-28 04:44:32 Functions: 0.0 % 1 0
Branches: 0.0 % 4 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 <kernel/checks.h>
       6                 :             : 
       7                 :             : #include <random.h>
       8                 :             : #include <util/result.h>
       9                 :             : #include <util/translation.h>
      10                 :             : 
      11                 :             : #include <memory>
      12                 :             : 
      13                 :             : namespace kernel {
      14                 :             : 
      15                 :           0 : util::Result<void> SanityChecks(const Context&)
      16                 :             : {
      17         [ #  # ]:           0 :     if (!Random_SanityCheck()) {
      18         [ #  # ]:           0 :         return util::Error{Untranslated("OS cryptographic RNG sanity check failure. Aborting.")};
      19                 :             :     }
      20                 :             : 
      21                 :           0 :     return {};
      22                 :             : }
      23                 :             : 
      24                 :             : }
        

Generated by: LCOV version 2.0-1