| blib/lib/Wasm.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 14 | 21 | 66.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 47 | 0 | 22 | 1 | defined $_[0] and $_[0] ne '-api' |
| 70 | 0 | 1 | 21 | defined $api and $api == 0 |
| 84 | 0 | 0 | 6 | defined $path and -f $path |
| 194 | 1 | 2 | 6 | $module ne 'main' and not $inst{$module} |
| 3 | 2 | 4 | $module ne 'main' and not $inst{$module} and not $pp{$module} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 24 | 16 | 5 | 0 | $linker ||= do { my $linker = 'Wasm::Wasmtime::Linker'->new('Wasm::Wasmtime::Store'->new('Wasm::Wasmtime::Engine'->new('Wasm::Wasmtime::Config'->new->wasm_multi_value(1)->cache_config_default))); $linker->allow_shadowing(0); $linker } |
| 176 | 0 | 2 | 0 | $wasi ||= 'Wasm::Wasmtime::WasiInstance'->new($linker->store, $module, 'Wasm::Wasmtime::WasiConfig'->new->set_argv($0, @ARGV)->inherit_env->inherit_stdin->inherit_stdout->inherit_stderr->preopen_dir('/', '/')) |