blib/lib/IO/Die/exec.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 8 | 75.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 9 | 13 | 69.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package IO::Die; | ||||||
2 | |||||||
3 | 1 | 1 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 94 | ||||||
4 | |||||||
5 | sub exec { | ||||||
6 | 1 | 1 | 1 | 3 | my ( $NS, $progname, @args ) = @_; | ||
7 | |||||||
8 | 1 | 0 | 2 | my $ok = CORE::exec {$progname} $progname, @args or do { | |||
1 | |||||||
9 | 0 | $NS->__THROW( 'Exec', program => $progname, arguments => \@args ); | |||||
10 | }; | ||||||
11 | |||||||
12 | 0 | return $ok; | |||||
13 | } | ||||||
14 | |||||||
15 | 1; |