Branch Coverage

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


line true false branch
73 1378 46949 if defined $event->{'anchor'}
74 1458 46869 if defined $event->{'tag'}
76 4610 43717 if ($ev eq 'document_start_event') { }
4524 39193 elsif ($ev eq 'document_end_event') { }
4198 34995 elsif ($ev eq 'stream_start_event') { }
4102 30893 elsif ($ev eq 'stream_end_event') { }
4049 26844 elsif ($ev eq 'mapping_start_event') { }
2628 24216 elsif ($ev eq 'sequence_start_event') { }
3998 20218 elsif ($ev eq 'mapping_end_event') { }
2604 17614 elsif ($ev eq 'sequence_end_event') { }
17303 311 elsif ($ev eq 'scalar_event') { }
311 0 elsif ($ev eq 'alias_event') { }
78 2008 2602 unless $event->{'implicit'}
82 335 4189 unless $event->{'implicit'}
92 1029 3020 if ($event->{'style'} and $event->{'style'} eq 2)
93 711 318 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/^ \*(.*)//)