line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RandomFileWithUnknownParameters; |
2
|
1
|
|
|
1
|
|
7
|
use base qw/RandomFileMethodBase/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
65
|
|
3
|
1
|
|
|
1
|
|
6
|
use TestConstants; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
63
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
6
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
9
|
1
|
|
|
1
|
|
256
|
use Test::Warn; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
179
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
use constant UNKNOWN_PARAMS => (-verzeichnis => SIMPLE_DIR, |
12
|
|
|
|
|
|
|
-ueberpruefe => qr/deutsch/, |
13
|
|
|
|
|
|
|
-DIR => SIMPLE_DIR, |
14
|
|
|
|
|
|
|
dir => SIMPLE_DIR, |
15
|
0
|
|
|
|
|
0
|
-Check => sub {1}, |
16
|
0
|
|
|
|
|
0
|
check => sub {1}, |
17
|
1
|
|
|
|
|
247
|
-RECURSIVE => 1, |
18
|
1
|
|
|
1
|
|
7
|
recursive => 1); |
|
1
|
|
|
|
|
2
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub warning_when_unknown_param : Test(8) { |
21
|
6
|
|
|
6
|
0
|
4757
|
my $self = shift; |
22
|
6
|
|
|
|
|
73
|
my %params = UNKNOWN_PARAMS; |
23
|
6
|
|
|
|
|
48
|
while (my @args = each %params) { |
24
|
48
|
|
|
48
|
|
2391
|
warning_like {$self->random_file(@args)} |
25
|
48
|
|
|
|
|
16989
|
[{carped => qr/unknown option/i}], |
26
|
|
|
|
|
|
|
"Arguments: @args"; |
27
|
|
|
|
|
|
|
} |
28
|
1
|
|
|
1
|
|
8
|
} |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
13
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |