| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
238215
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
67
|
|
|
2
|
1
|
|
|
1
|
|
22
|
use 5.020; |
|
|
1
|
|
|
|
|
4
|
|
|
3
|
1
|
|
|
1
|
|
695
|
use experimental qw( signatures ); |
|
|
1
|
|
|
|
|
5089
|
|
|
|
1
|
|
|
|
|
9
|
|
|
4
|
1
|
|
|
1
|
|
795
|
use true; |
|
|
1
|
|
|
|
|
10682
|
|
|
|
1
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Test2::Require::ProgramInPath 0.01 { |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Skip test unless a program exists in the PATH |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
1926
|
use File::Which (); |
|
|
1
|
|
|
|
|
1761
|
|
|
|
1
|
|
|
|
|
35
|
|
|
12
|
1
|
|
|
1
|
|
6
|
use Carp qw( confess ); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
74
|
|
|
13
|
1
|
|
|
1
|
|
6
|
use parent qw( Test2::Require ); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
7
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
1
|
336156
|
sub skip ( $, $program = undef ) { |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
5
|
|
|
16
|
2
|
50
|
|
|
|
8
|
confess "no program specified" unless defined $program; |
|
17
|
2
|
100
|
|
|
|
8
|
return undef if File::Which::which $program; |
|
18
|
1
|
|
|
|
|
1070
|
return "This test only runs if $program is in the PATH"; |
|
19
|
|
|
|
|
|
|
} |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |