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'} ? :
133 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'} ? :
142 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'} ? :
153 14 126 if ($trailing_wsp eq 'DELETE') { }
14 112 elsif ($trailing_wsp eq 'COMPRESS') { }
0 112 elsif ($trailing_wsp ne 'PRESERVE') { }
190 40 20 if @$twine == 1
195 6 14 exists $$options{'intermediate_wsp'} ? :
212 30 30 if (rand $_[0]) { }
251 62 50 if ($allow_wsp) { }
252 12 50 unless $$content[$i] =~ /\A$XML::Easy::SimpleSchemaUtil::xml10_s_rx?\z/o
256 22 28 unless $$content[$i] eq ''
285 10 14 unless @$content == 1