blib/lib/Regexp/List.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 2 | 2 | 100.0 |
total | 23 | 23 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Regexp::List; | ||||||
2 | |||||||
3 | 1 | 1 | 603 | use 5.008001; | |||
1 | 3 | ||||||
1 | 36 | ||||||
4 | 1 | 1 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 30 | ||||||
5 | 1 | 1 | 4 | use warnings FATAL => 'all'; | |||
1 | 2 | ||||||
1 | 33 | ||||||
6 | 1 | 1 | 1440 | use Regexp::Assemble; | |||
1 | 25153 | ||||||
1 | 172 | ||||||
7 | our $VERSION = sprintf "%d.%02d", q$Revision: 0.20 $ =~ /(\d+)/g; | ||||||
8 | |||||||
9 | sub new { | ||||||
10 | 1 | 1 | 1 | 660 | bless \my $dummy, shift; | ||
11 | }; | ||||||
12 | |||||||
13 | sub list2re { | ||||||
14 | 1 | 1 | 1 | 1007 | my $self = shift; | ||
15 | 1 | 4 | Regexp::Assemble->new->add(@_)->re; | ||||
16 | }; | ||||||
17 | |||||||
18 | 1; # End of Regexp::List | ||||||
19 | |||||||
20 | __END__ |