Branch Coverage

blib/lib/YAML/PP/Common.pm
Criterion Covered Total %
branch 68 76 89.4


line true false branch
73 1378 47061 if defined $event->{'anchor'}
74 1458 46981 if defined $event->{'tag'}
76 4624 43815 if ($ev eq 'document_start_event') { }
4538 39277 elsif ($ev eq 'document_end_event') { }
4212 35065 elsif ($ev eq 'stream_start_event') { }
4116 30949 elsif ($ev eq 'stream_end_event') { }
4063 26886 elsif ($ev eq 'mapping_start_event') { }
2628 24258 elsif ($ev eq 'sequence_start_event') { }
4012 20246 elsif ($ev eq 'mapping_end_event') { }
2604 17642 elsif ($ev eq 'sequence_end_event') { }
17331 311 elsif ($ev eq 'scalar_event') { }
311 0 elsif ($ev eq 'alias_event') { }
78 2022 2602 unless $event->{'implicit'}
82 335 4203 unless $event->{'implicit'}
92 1032 3031 if ($event->{'style'} and $event->{'style'} eq 2)
93 713 319 if $args->{'flow'}
102 734 1894 if ($event->{'style'} and $event->{'style'} eq 2)
103 469 265 if $args->{'flow'}
139 1 29 if ($str =~ s/^\+STR//) { }
1 28 elsif ($str =~ s/^\-STR//) { }
1 27 elsif ($str =~ s/^\+DOC//) { }
1 26 elsif ($str =~ s/^\-DOC//) { }
3 23 elsif ($str =~ s/^\+SEQ//) { }
3 20 elsif ($str =~ s/^\-SEQ//) { }
5 15 elsif ($str =~ s/^\+MAP//) { }
5 10 elsif ($str =~ s/^\-MAP//) { }
4 6 elsif ($str =~ s/^=VAL//) { }
6 0 elsif ($str =~ s/^=ALI//) { }
147 1 0 if ($str =~ s/^ ---//) { }
156 0 1 if ($str =~ s/^ \.\.\.//) { }
165 0 3 if ($str =~ s/^ \&(\S+)//)
168 1 2 if ($str =~ s/^ <(\S+)>//)
177 1 4 if ($str =~ s/^ \&(\S+)//)
180 2 3 if ($str =~ s/^ <(\S+)>//)
189 1 3 if ($str =~ s/^ <(\S+)>//)
192 4 0 if ($str =~ s/^ [:'">|]//)
195 4 0 if ($str =~ s/^(.*)//)
201 6 0 if ($str =~ s/^ \*(.*)//)