Branch Coverage

blib/lib/Data/Stag/Writer.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
118 56 1 unless $fh or $file
119 56 1 if $fh
120 1 56 if $file
126 1 3412 if (@_)
136 75 3 if @_
142 1 0 if @_
149 39 3412 if @_
158 1 58 if ($$self{'_did_i_open_fh'})
167 2 0 if ($fh)
177 1 3411 if ($file and not $fh)
192 124 3288 if (not $self->is_buffered and $fh) { }
196 38 3250 unless ($$self{'_buffer'})
229 0 693 if (@_)
231 0 0 if ($$self{'_use_color'})