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.001';
3 3     3   43 use v5.10;
  3         10  
4 3     3   14 use strict;
  3         6  
  3         65  
5 3     3   17 use warnings;
  3         7  
  3         68  
6              
7 3     3   14 use Moo;
  3         31  
  3         24  
8              
9 3     3   2272 use App::HL7::Compare::Parser::Component;
  3         11  
  3         548  
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 31     31 0 52 my ($self) = @_;
20              
21 31         359 return $self->msg_config->component_separator;
22             }
23              
24             sub _build_parts
25             {
26 31     31   265 my ($self) = @_;
27              
28 31         83 return $self->split_and_build($self->consume_input, 'App::HL7::Compare::Parser::Component');
29             }
30              
31             1;
32