File Coverage

blib/lib/App/HL7/Compare/Parser/Component.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::Component;
2             $App::HL7::Compare::Parser::Component::VERSION = '0.001';
3 3     3   37 use v5.10;
  3         10  
4 3     3   19 use strict;
  3         18  
  3         58  
5 3     3   20 use warnings;
  3         5  
  3         79  
6              
7 3     3   18 use Moo;
  3         6  
  3         19  
8              
9 3     3   2353 use App::HL7::Compare::Parser::Subcomponent;
  3         11  
  3         552  
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 96 my ($self) = @_;
20              
21 31         358 return $self->msg_config->subcomponent_separator;
22             }
23              
24             sub _build_parts
25             {
26 31     31   261 my ($self) = @_;
27              
28 31         144 return $self->split_and_build($self->consume_input, 'App::HL7::Compare::Parser::Subcomponent');
29             }
30              
31             1;
32