Coverage Report

Created: 2026-10-12 08:10

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/wasmtime/fuzz/fuzz_targets/component_api.rs
Line
Count
Source
1
#![no_main]
2
#![allow(dead_code, reason = "fuzz-generation sometimes generates unused types")]
3
4
use libfuzzer_sys::{arbitrary, fuzz_target};
5
use wasmtime_fuzzing::oracles;
6
7
include!(concat!(env!("OUT_DIR"), "/static_component_api.rs"));
8
9
0
fn target(input: &mut arbitrary::Unstructured) -> arbitrary::Result<()> {
10
0
    if input.arbitrary()? {
11
0
        static_component_api_target(input)
12
    } else {
13
0
        oracles::component_api::dynamic_component_api_target(input)
14
    }
15
0
}
16
17
fuzz_target!(|bytes: &[u8]| {
18
    let _ = target(&mut arbitrary::Unstructured::new(bytes));
19
});