File Coverage

blib/lib/App/perlfind/Plugin/Label.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package App::perlfind::Plugin::Label;
2 2     2   3211 use 5.008;
  2         7  
  2         719  
3 2     2   14 use strict;
  2         5  
  2         306  
4 2     2   11 use warnings;
  2         5  
  2         50  
5 2     2   10 use App::perlfind;
  2         3  
  2         1618  
6             our $VERSION = '2.05';
7             App::perlfind->add_trigger(
8             'matches.add' => sub {
9             my ($class, $word, $matches) = @_;
10              
11             # Is it a label (ends with ':')? Do this after %found_in, because there are
12             # special labels such as 'SKIP:' and 'TODO:' that map to Test::More
13             if ($$word =~ /^\w+:$/) { push @$matches, 'perlsyn' }
14             }
15             );
16             1;
17             __END__