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.004';
3 4     4   51 use v5.10;
  4         17  
4 4     4   24 use strict;
  4         10  
  4         156  
5 4     4   18 use warnings;
  4         6  
  4         212  
6              
7 4     4   23 use Moo;
  4         8  
  4         22  
8              
9 4     4   3712 use App::HL7::Compare::Parser::Subcomponent;
  4         17  
  4         694  
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 47     47 0 75 my ($self) = @_;
20              
21 47         636 return $self->msg_config->subcomponent_separator;
22             }
23              
24             sub _build_parts
25             {
26 47     47   362 my ($self) = @_;
27              
28 47         118 return $self->split_and_build($self->consume_input, 'App::HL7::Compare::Parser::Subcomponent');
29             }
30              
31             1;
32