LCOV - code coverage report
Current view: top level - src/test/util - script.cpp (source / functions) Coverage Total Hit
Test: fuzz_coverage.info Lines: 100.0 % 5 5
Test Date: 2024-09-01 05:20:30 Functions: 100.0 % 1 1
Branches: 100.0 % 8 8

             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                 :      177108 : bool IsValidFlagCombination(unsigned flags)
       9                 :             : {
      10   [ +  +  +  + ]:      177108 :     if (flags & SCRIPT_VERIFY_CLEANSTACK && ~flags & (SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_WITNESS)) return false;
      11   [ +  +  +  + ]:      176647 :     if (flags & SCRIPT_VERIFY_WITNESS && ~flags & SCRIPT_VERIFY_P2SH) return false;
      12                 :      176550 :     return true;
      13                 :      177108 : }
        

Generated by: LCOV version 2.0-1