line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::MigrateToTest2V0; |
2
|
1
|
|
|
1
|
|
783
|
use 5.008001; |
|
1
|
|
|
|
|
3
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
20
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
147
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our @rules = qw( |
9
|
|
|
|
|
|
|
App::MigrateToTest2V0::Rule::ReplaceUseTestMoreToUseTest2V0 |
10
|
|
|
|
|
|
|
App::MigrateToTest2V0::Rule::ReplaceIsDeeplyToIs |
11
|
|
|
|
|
|
|
App::MigrateToTest2V0::Rule::ReplaceIsaOkHASHOrArrayToRefOk |
12
|
|
|
|
|
|
|
App::MigrateToTest2V0::Rule::Translate2ndArgumentOfIsaOkWithArrayRef |
13
|
|
|
|
|
|
|
App::MigrateToTest2V0::Rule::AvoidNameConflictWithTestDeep |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub apply { |
17
|
0
|
|
|
0
|
0
|
|
my ($class, $doc) = @_; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
for my $rule_class (@rules) { |
20
|
0
|
|
|
|
|
|
eval "require $rule_class"; |
21
|
0
|
|
|
|
|
|
$rule_class->apply($doc); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
$doc->save($doc->filename); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |