File Coverage

blib/lib/PPIx/DocumentName/Result.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod 4 4 100.0
total 34 34 100.0


line stmt bran cond sub pod time code
1             package PPIx::DocumentName::Result;
2              
3 2     2   68474 use strict;
  2         14  
  2         65  
4 2     2   11 use warnings;
  2         13  
  2         70  
5 2     2   44 use 5.006;
  2         7  
6             use overload
7 11     11   12703 '""' => sub { shift->to_string },
8 6     6   20 bool => sub { 1 },
9 2     2   1236 fallback => 1;
  2         1014  
  2         20  
10              
11             # ABSTRACT: Full result set for PPIx::DocumentName
12             our $VERSION = '1.00_01'; # TRIAL VERSION
13             $VERSION = eval $VERSION; ## no critic (BuiltinFunctions::ProhibitStringyEval)
14              
15              
16             sub _new
17             {
18 11     11   137 my($class, $name, $document, $node) = @_;
19 11         103 bless {
20             name => $name,
21             document => $document,
22             node => $node,
23             }, $class;
24             }
25              
26 11     11 1 679 sub name { shift->{name} }
27 11     11 1 47 sub document { shift->{document} }
28 11     11 1 46 sub node { shift->{node} }
29 12     12 1 59 sub to_string { shift->{name} }
30              
31             1;
32              
33             __END__