LCOV - code coverage report
Current view: top level - src/test/fuzz - parse_script.cpp (source / functions) Coverage Total Hit
Test: fuzz_coverage.info Lines: 100.0 % 7 7
Test Date: 2024-12-04 04:00:22 Functions: 100.0 % 2 2
Branches: 75.0 % 8 6

             Branch data     Line data    Source code
       1                 :             : // Copyright (c) 2009-2020 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 <core_io.h>
       6                 :             : #include <script/script.h>
       7                 :             : #include <test/fuzz/fuzz.h>
       8                 :             : 
       9         [ +  - ]:         628 : FUZZ_TARGET(parse_script)
      10                 :             : {
      11         [ +  + ]:         216 :     const std::string script_string(buffer.begin(), buffer.end());
      12                 :         216 :     try {
      13         [ +  + ]:         291 :         (void)ParseScript(script_string);
      14         [ -  + ]:         141 :     } catch (const std::runtime_error&) {
      15                 :         141 :     }
      16                 :         216 : }
        

Generated by: LCOV version 2.0-1