LCOV - code coverage report
Current view: top level - src/test/util - script.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 3 8 37.5 %
Date: 2023-11-06 23:13:05 Functions: 0 3 0.0 %
Branches: 2 12 16.7 %

           Branch data     Line data    Source code
       1                 :            : // Copyright (c) 2021 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 <script/interpreter.h>
       6                 :            : #include <test/util/script.h>
       7                 :            : 
       8                 :          0 : bool IsValidFlagCombination(unsigned flags)
       9                 :            : {
      10 [ #  # ][ #  # ]:          0 :     if (flags & SCRIPT_VERIFY_CLEANSTACK && ~flags & (SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS)) return false;
      11 [ +  - ][ #  # ]:          2 :     if (flags & SCRIPT_VERIFY_WITNESS && ~flags & SCRIPT_VERIFY_P2SH) return false;
                 [ #  # ]
      12         [ +  - ]:          2 :     return true;
      13                 :          2 : }

Generated by: LCOV version 1.14