File Coverage

blib/lib/App/HL7/Compare/Parser/Field.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 25 26 96.1


line stmt bran cond sub pod time code
1             package App::HL7::Compare::Parser::Field;
2             $App::HL7::Compare::Parser::Field::VERSION = '0.004';
3 4     4   72 use v5.10;
  4         16  
4 4     4   24 use strict;
  4         7  
  4         97  
5 4     4   19 use warnings;
  4         6  
  4         228  
6              
7 4     4   21 use Moo;
  4         8  
  4         33  
8              
9 4     4   3716 use App::HL7::Compare::Parser::Component;
  4         16  
  4         675  
10              
11             with qw(
12             App::HL7::Compare::Parser::Role::Partible
13             App::HL7::Compare::Parser::Role::Part
14             App::HL7::Compare::Parser::Role::RequiresInput
15             );
16              
17             sub part_separator
18             {
19 49     49 0 109 my ($self) = @_;
20              
21 49         662 return $self->msg_config->component_separator;
22             }
23              
24             sub _build_parts
25             {
26 49     49   368 my ($self) = @_;
27              
28 49         172 return $self->split_and_build($self->consume_input, 'App::HL7::Compare::Parser::Component');
29             }
30              
31             1;
32