line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::MPMinus; # $Id: MPMinus.pm 7 2019-05-30 07:41:32Z minus $ |
2
|
4
|
|
|
4
|
|
277013
|
use strict; |
|
4
|
|
|
|
|
35
|
|
|
4
|
|
|
|
|
130
|
|
3
|
4
|
|
|
4
|
|
21
|
use vars qw/$VERSION/; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
299
|
|
4
|
|
|
|
|
|
|
$VERSION = 1.01; |
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
2155
|
use Encode; # For CTK bug fix |
|
4
|
|
|
|
|
42406
|
|
|
4
|
|
|
|
|
283
|
|
7
|
4
|
|
|
4
|
|
1685
|
use File::Spec::Functions; |
|
4
|
|
|
|
|
3488
|
|
|
4
|
|
|
|
|
333
|
|
8
|
4
|
|
|
4
|
|
2761
|
use File::Temp qw/ tempdir /; |
|
4
|
|
|
|
|
86255
|
|
|
4
|
|
|
|
|
678
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my $dir = tempdir( CLEANUP => 1 ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my %cfg = ( |
13
|
|
|
|
|
|
|
default => undef, |
14
|
|
|
|
|
|
|
document_root => $dir, |
15
|
|
|
|
|
|
|
auth => { |
16
|
|
|
|
|
|
|
file => catfile($dir,'foo'.$$), # ':memory:', |
17
|
|
|
|
|
|
|
}, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub new { |
21
|
3
|
|
|
3
|
0
|
354
|
my $class = shift; |
22
|
3
|
|
|
|
|
11
|
return bless {}, $class; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
sub t { |
25
|
1
|
|
|
1
|
0
|
862
|
my $self = shift; |
26
|
1
|
|
|
|
|
7
|
return "Ok" |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub conf { |
30
|
6
|
|
|
6
|
0
|
119
|
my $self = shift; |
31
|
6
|
|
50
|
|
|
78
|
return $cfg{shift || 'default'}; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |