LCOV - code coverage report
Current view: top level - src/test/util - script.h (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 5 5 100.0 %
Date: 2022-04-21 14:51:19 Functions: 3 3 100.0 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 0 0 -

           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                 :            : #ifndef BITCOIN_TEST_UTIL_SCRIPT_H
#       6                 :            : #define BITCOIN_TEST_UTIL_SCRIPT_H
#       7                 :            : 
#       8                 :            : #include <crypto/sha256.h>
#       9                 :            : #include <script/script.h>
#      10                 :            : 
#      11                 :            : static const std::vector<uint8_t> WITNESS_STACK_ELEM_OP_TRUE{uint8_t{OP_TRUE}};
#      12                 :            : static const CScript P2WSH_OP_TRUE{
#      13                 :            :     CScript{}
#      14                 :            :     << OP_0
#      15                 :          6 :     << ToByteVector([] {
#      16                 :          6 :            uint256 hash;
#      17                 :          6 :            CSHA256().Write(WITNESS_STACK_ELEM_OP_TRUE.data(), WITNESS_STACK_ELEM_OP_TRUE.size()).Finalize(hash.begin());
#      18                 :          6 :            return hash;
#      19                 :          6 :        }())};
#      20                 :            : 
#      21                 :            : /** Flags that are not forbidden by an assert in script validation */
#      22                 :            : bool IsValidFlagCombination(unsigned flags);
#      23                 :            : 
#      24                 :            : #endif // BITCOIN_TEST_UTIL_SCRIPT_H

Generated by: LCOV version 0-eol-96201-ge66f56f4af6a