Branch Coverage

blib/lib/XML/Easy/SimpleSchemaUtil.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
131 84 56 exists $options->{'leading_wsp'} ? :
132 14 126 if ($leading_wsp eq 'DELETE') { }
14 112 elsif ($leading_wsp eq 'COMPRESS') { }
0 112 elsif ($leading_wsp ne 'PRESERVE') { }
140 42 98 exists $options->{'intermediate_wsp'} ? :
141 14 126 if ($intermediate_wsp eq 'DELETE') { }
14 112 elsif ($intermediate_wsp eq 'COMPRESS') { }
0 112 elsif ($intermediate_wsp ne 'PRESERVE') { }
151 84 56 exists $options->{'trailing_wsp'} ? :
152 14 126 if ($trailing_wsp eq 'DELETE') { }
14 112 elsif ($trailing_wsp eq 'COMPRESS') { }
0 112 elsif ($trailing_wsp ne 'PRESERVE') { }
189 40 20 if @$twine == 1
199 6 14 exists $options->{'intermediate_wsp'} ? :
211 30 30 if (rand $_[0]) { }
250 62 50 if ($allow_wsp) { }
251 12 50 unless $content->[$i] =~ /\A$XML::Easy::SimpleSchemaUtil::xml10_s_rx?\z/o
255 22 28 unless $content->[$i] eq ''
284 10 14 unless @$content == 1