Branch Coverage

blib/lib/YAML/Perl/Base.pm
Criterion Covered Total %
branch 492 768 64.0


line true false branch
13 685 115 if ($class->isa('YAML::Perl::Base') and defined $flag and $flag eq '-base') { }
37 135 550 if defined $INC{$inc_module}
44 6165 0 /::/ ? :
64 0 0 unless $k
65 0 0 if (not defined $v) { }
0 0 elsif (ref $v) { }
0 0 elsif (length $v > 15) { }
85 0 6127 unless ($self->can($property))
98 0 250 if $@ and not "$@" =~ /Can't locate/
166 0 1782 if defined $$args{-'package'}
167 0 1782 if defined &{"${package}::$field";}
168 47 1655 ref $default eq 'HASH' && !keys(%$default) ? :
80 1702 ref $default eq 'ARRAY' && !@$default ? :
177 72 1710 if ($$args{-'class'})
178 72 0 if ($$args{-'class'} eq '-init')
188 243 1539 if ($$args{-'init'})
196 686 1096 if defined $default
200 39 1743 if defined $$args{-'onset'}
202 136 1646 if (defined $$args{-'chain'}) { }
209 421 155 unless $#_ > 0
82 286 unless $#_ > 0
179 8 unless exists $_[0]{'id'}
162 93 unless $#_ > 0
137 36 unless $#_ > 0 or defined $_[0]{'composer_class'}
126 161 unless $#_ > 0
363 77 unless exists $_[0]{'deep_construct'}
73 147 unless $#_ > 0
144 98 unless exists $_[0]{'opened'}
22 51 unless $#_ > 0
71 417 unless exists $_[0]{'whitespace'}
441 383 unless $#_ > 0
373 43 unless exists $_[0]{'best_indent'}
63 92 unless $#_ > 0
56 66 unless exists $_[0]{'next_layer'}
98 1696 unless $#_ > 0
1695 29 unless $#_ > 0
12 27 unless exists $_[0]{'next_layer'}
99 2137 unless $#_ > 0
2626 379 unless exists $_[0]{'id'}
147 538 unless $#_ > 0
513 11 unless exists $_[0]{'id'}
76 20 unless $#_ > 0
127 110 unless $#_ > 0
195 45 unless exists $_[0]{'states'}
80 253 unless $#_ > 0
161 120 unless $#_ > 0
45 82 unless $#_ > 0
579 457 unless $#_ > 0
299 236 unless exists $_[0]{'next_layer'}
496 343 unless $#_ > 0
80 98 unless $#_ > 0 or defined $_[0]{'emitter'}
511 129 unless $#_ > 0
359 43 unless $#_ > 0
28 916 unless $#_ > 0
1377 141 unless $#_ > 0 or defined $_[0]{'reader_class'}
54 1105 unless $#_ > 0
1216 53 unless $#_ > 0 or defined $_[0]{'reader'}
111 246 unless $#_ > 0
171 279 unless exists $_[0]{'id'}
250 207 unless $#_ > 0
436 439 unless $#_ > 0
286 162 unless exists $_[0]{'eof'}
150 326 unless $#_ > 0
343 216 unless $#_ > 0
261 212 unless $#_ > 0
103 51 unless $#_ > 0
31 543 unless $#_ > 0 or defined $_[0]{'serializer'}
418 254 unless $#_ > 0
150 63 unless exists $_[0]{'tag_handles'}
95 33 unless $#_ > 0
161 403 unless exists $_[0]{'line'}
347 48 unless $#_ > 0
196 77 unless exists $_[0]{'flow_level'}
300 74 unless $#_ > 0
44 559 unless exists $_[0]{'explicit'}
585 124 unless $#_ > 0
153 270 unless $#_ > 0
309 117 unless $#_ > 0
65 413 unless $#_ > 0
466 98 unless exists $_[0]{'simple_key_context'}
139 32 unless $#_ > 0
260 189 unless exists $_[0]{'column'}
322 192 unless $#_ > 0
21 341 unless $#_ > 0
171 98 unless $#_ > 0
156 138 unless $#_ > 0
194 61 unless $#_ > 0
41 296 unless $#_ > 0
134 63 unless $#_ > 0
69 194 unless exists $_[0]{'anchors'}
286 418 unless $#_ > 0
274 575 unless exists $_[0]{'represented_objects'}
459 88 unless $#_ > 0
344 47 unless $#_ > 0
78 105 unless exists $_[0]{'best_line_break'}
236 85 unless $#_ > 0
34 64 unless $#_ > 0 or defined $_[0]{'yaml_constructors'}
54 74 unless $#_ > 0
70 243 unless $#_ > 0
184 337 unless exists $_[0]{'indention'}
346 197 unless $#_ > 0
861 272 unless $#_ > 0
229 194 unless $#_ > 0
102 26 unless $#_ > 0
53 1508 unless $#_ > 0
1559 156 unless $#_ > 0
135 254 unless exists $_[0]{'constructed_objects'}
651 305 unless $#_ > 0
91 276 unless exists $_[0]{'implicit'}
129 250 unless $#_ > 0
180 211 unless $#_ > 0
299 456 unless exists $_[0]{'id'}
475 512 unless $#_ > 0
335 114 unless exists $_[0]{'flow_level'}
320 61 unless $#_ > 0
41 63 unless exists $_[0]{'closed'}
69 288 unless $#_ > 0
282 288 unless $#_ > 0
313 144 unless exists $_[0]{'done'}
143 142 unless $#_ > 0
935 337 unless exists $_[0]{'next_layer'}
77 1647 unless $#_ > 0
1685 45 unless $#_ > 0
20 105 unless $#_ > 0 or defined $_[0]{'representer_class'}
175 272 unless $#_ > 0
182 277 unless $#_ > 0 or defined $_[0]{'emitter_class'}
168 47 unless $#_ > 0
77 60 unless exists $_[0]{'id'}
148 91 unless $#_ > 0
75 10 unless exists $_[0]{'pointer'}
71 92 unless $#_ > 0
88 56 unless exists $_[0]{'recursive_objects'}
158 738 unless $#_ > 0
647 84 unless $#_ > 0
87 124 unless exists $_[0]{'next_layer'}
128 154 unless $#_ > 0
174 95 unless $#_ > 0
405 121 unless $#_ > 0
43 469 unless $#_ > 0 or defined $_[0]{'serializer'}
472 4 unless $#_ > 0
175 340 unless exists $_[0]{'next_layer'}
362 101 unless $#_ > 0
101 58 unless $#_ > 0 or defined $_[0]{'reader'}
55 114 unless $#_ > 0
111 202 unless exists $_[0]{'mapping_context'}
17 759 unless $#_ > 0
600 441 unless $#_ > 0
433 26 unless $#_ > 0
38 76 unless exists $_[0]{'id'}
184 37 unless $#_ > 0
50 333 unless $#_ > 0 or defined $_[0]{'serializer_class'}
74 160 unless $#_ > 0
206 269 unless $#_ > 0
79 206 unless exists $_[0]{'id'}
108 125 unless $#_ > 0
60 167 unless $#_ > 0
191 91 unless exists $_[0]{'id'}
40 1971 unless $#_ > 0
2038 66 unless $#_ > 0
102 149 unless $#_ > 0
115 51 unless exists $_[0]{'buffer'}
23 4 unless $#_ > 0
23 7 unless $#_ > 0
55 1070 unless exists $_[0]{'sequence_context'}
1096 275 unless $#_ > 0
171 96 unless exists $_[0]{'best_width'}
11 79 unless $#_ > 0
193 447 unless exists $_[0]{'indents'}
426 34 unless $#_ > 0
7 25 unless $#_ > 0 or defined $_[0]{'scanner'}
54 235 unless $#_ > 0
283 4 unless exists $_[0]{'id'}
12 142 unless $#_ > 0
57 74 unless $#_ > 0
17 203 unless exists $_[0]{'id'}
124 258 unless $#_ > 0
42 93 unless $#_ > 0 or defined $_[0]{'parser'}
25 30 unless $#_ > 0
42 30 unless $#_ > 0
24 495 unless exists $_[0]{'resolver_class'}
493 51 unless $#_ > 0
52 6 unless $#_ > 0
7 96 unless $#_ > 0
109 34 unless exists $_[0]{'id'}
120 73 unless $#_ > 0
31 78 unless exists $_[0]{'state_generators'}
70 91 unless $#_ > 0
60 0 unless $#_ > 0
15 1 unless exists $_[0]{'tokens'}
38 42 unless $#_ > 0
27 136 unless $#_ > 0
147 76 unless exists $_[0]{'next_layer'}
66 10 unless $#_ > 0
6 0 unless $#_ > 0
0 0 unless $#_ > 0
0 3 unless $#_ > 0 or defined $_[0]{'writer_class'}
9 82 unless $#_ > 0
85 6 unless exists $_[0]{'stream_pointer'}
28 592 unless $#_ > 0
437 176 unless $#_ > 0
15 12 unless exists $_[0]{'allow_simple_key'}
7 30 unless $#_ > 0
139 1147 unless $#_ > 0
1119 85 unless exists $_[0]{'id'}
85 23 unless $#_ > 0
9 29 unless ref $_[0]
286 35 unless $#_ > 0 or defined $_[0]{'resolver'}
260 54 unless $#_ > 0
23 23 unless $#_ > 0
0 0 unless $YAML::Perl::DumperClass or $YAML::DumperClass
107 102 unless ref $_[0]
2 2 unless $YAML::Perl::DumperClass or $YAML::DumperClass
0 3 unless $#_ > 0 or defined $_[0]{'dumper_class'}
1 4 unless $#_ > 0
5 21 unless exists $_[0]{'resolver_exact_paths'}
9 1632 unless $#_ > 0
1643 0 unless $#_ > 0
9 5 unless exists $_[0]{'marks'}
11 6 unless $#_ > 0
15 0 unless exists $_[0]{'serialized_nodes'}
9 21 unless $#_ > 0
0 9 unless exists $_[0]{'line'}
9 6 unless $#_ > 0
13 23 unless exists $_[0]{'anchors'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
1 15 unless $#_ > 0
8 8 unless $#_ > 0
12 73 unless $#_ > 0 or defined $_[0]{'constructor'}
84 9 unless $#_ > 0
1 2 unless $#_ > 0 or defined $_[0]{'stream'}
2 1 unless $#_ > 0
30 9 unless $#_ > 0
3 0 unless exists $_[0]{'possible_simple_keys'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'yaml_multi_constructors'}
10 11 unless $#_ > 0
1 31 unless exists $_[0]{'id'}
32 0 unless $#_ > 0
18 6 unless $#_ > 0
16 8 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
78 17 unless $#_ > 0
2 0 unless exists $_[0]{'state'}
0 0 unless $#_ > 0
0 3 unless $#_ > 0
0 0 unless $#_ > 0
1 54 unless $#_ > 0 or defined $_[0]{'scanner_class'}
54 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'parser'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
2 0 unless exists $_[0]{'state'}
0 0 unless $#_ > 0
1 2 unless exists $_[0]{'id'}
3 0 unless $#_ > 0
0 21 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'resolver'}
2 1 unless $#_ > 0
1 2 unless $#_ > 0
15 6 unless $#_ > 0
1 182 unless exists $_[0]{'implicit'}
183 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
0 0 unless ref $_[0]
0 0 unless $#_ > 0 or defined $_[0]{'loader'}
1 4 unless $#_ > 0
1 4 unless $#_ > 0
6 3 unless $#_ > 0
3 3 unless $#_ > 0
0 0 unless exists $_[0]{'use_explicit_start'}
0 0 unless $#_ > 0
1 12 unless exists $_[0]{'next_layer'}
12 1 unless $#_ > 0
1 1 unless exists $_[0]{'index'}
2 0 unless $#_ > 0
1 0 unless $#_ > 0
0 0 unless exists $_[0]{'column'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'next_layer'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'resolver_prefix_paths'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'parser_class'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'tokens_taken'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'next_layer'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'states'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'root_context'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'indent'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'events'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'representer'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless ref $_[0]
0 0 unless $#_ > 0 or defined $_[0]{'dumper'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'scanner'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'next_layer'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $YAML::Perl::LoaderClass or $YAML::LoaderClass
0 0 unless ref $_[0]
0 0 unless $YAML::Perl::LoaderClass or $YAML::LoaderClass
0 0 unless $#_ > 0 or defined $_[0]{'loader_class'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'constructor_class'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'composer'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'id'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $YAML::Perl::ResolverClass or $YAML::ResolverClass
0 0 unless ref $_[0]
0 0 unless $YAML::Perl::ResolverClass or $YAML::ResolverClass
0 0 unless $#_ > 0 or defined $_[0]{'resolver_class'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'resolver'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'last_anchor_id'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'resolver_class'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'writer'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'emitter'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'writer'}
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'object_keeper'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless exists $_[0]{'indents'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
0 0 unless $#_ > 0 or defined $_[0]{'composer'}
0 0 unless $#_ > 0
0 0 unless $#_ > 0
210 0 1782 if $@
213 0 1782 if defined wantarray
222 0 33 $stringify ? :
33 0 ref $_[0] ? :
225 0 33 if (ref $_[0] eq 'Regexp')
231 0 33 unless $id
233 33 0 wantarray ? :
244 0 0 if (defined $_[0])
245 0 0 if (ref \$_[0] eq 'GLOB')
249 0 0 unless (\$_[0]) =~ /\((\w+)\)$/o
274 0 153 unless $_[0]