Branch Coverage

blib/lib/System/Introspector/Util.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
34 0 4 unless opendir $dh, $dir
38 8 4 if -d "$dir/$item"
47 1 45 if (my $error = $@)
48 1 0 if is_report_exception($error)
57 16 0 unless defined $in
60 0 15 unless run($command, \$in, \$out, \$err)
61 1 15 unless $ok
62 2 14 if wantarray
64 14 0 if ref $command
66 1 13 unless $ok
94 0 8 unless defined $err
96 0 8 if $status
101 0 8 unless ($ok)
103 0 0 if blessed $err and $err->isa('System::Introspector::_Exception')
112 0 17 unless open my $fh, '<', $file
121 5 8 if wantarray