blib/lib/App/perlfind/Plugin/SpecialPackages.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 12 | 12 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::perlfind::Plugin::SpecialPackages; | ||||||
2 | 10 | 10 | 1922307 | use strict; | |||
10 | 28 | ||||||
10 | 450 | ||||||
3 | 10 | 10 | 61 | use warnings; | |||
10 | 12 | ||||||
10 | 327 | ||||||
4 | 10 | 10 | 600 | use App::perlfind; | |||
10 | 15 | ||||||
10 | 250 | ||||||
5 | our $VERSION = '2.07'; | ||||||
6 | |||||||
7 | App::perlfind->add_trigger( | ||||||
8 | 'matches.add' => sub { | ||||||
9 | my ($class, $word, $matches) = @_; | ||||||
10 | $$word =~ /^UNIVERSAL::/ && push @$matches, 'perlobj'; | ||||||
11 | $$word =~ /^CORE::/ && push @$matches, 'perlsub'; | ||||||
12 | } | ||||||
13 | ); | ||||||
14 | 1; | ||||||
15 | __END__ |