File Coverage

blib/lib/Data/Semantic/URI/fax.pm
Criterion Covered Total %
statement 22 22 100.0
branch 2 2 100.0
condition n/a
subroutine 7 7 100.0
pod 1 1 100.0
total 32 32 100.0


line stmt bran cond sub pod time code
1 1     1   1604 use 5.008;
  1         7  
  1         49  
2 1     1   5 use strict;
  1         3  
  1         35  
3 1     1   5 use warnings;
  1         3  
  1         69  
4              
5             package Data::Semantic::URI::fax;
6             our $VERSION = '1.100850';
7             # ABSTRACT: Semantic data class for fax URIs
8 1     1   6 use parent qw(Data::Semantic::URI);
  1         1  
  1         6  
9             __PACKAGE__->mk_boolean_accessors(qw(nofuture));
10 1     1   67 use constant REGEXP_KEYS => qw(URI fax);
  1         1  
  1         62  
11 1     1   19 use constant KEEP_KEYS => qw(URI scheme phone_number);
  1         2  
  1         107  
12              
13             sub flags {
14 2     2 1 19950 my $self = shift;
15 2         12 my @flags = $self->SUPER::flags(@_);
16 2 100       45 push @flags => 'nofuture' if $self->nofuture;
17 2         29 @flags;
18             }
19             1;
20              
21              
22             __END__