Branch Coverage

blib/lib/XML/Struct/Writer/Stream.pm
Criterion Covered Total %
branch 24 28 85.7


line true false branch
28 3 0 if $data->{'Encoding'}
29 0 3 if $data->{'Standalone'}
49 15 21 if ($status == 1) { }
7 14 elsif ($status == 3) { }
2 12 elsif ($status == 2) { }
51 1 14 if ($self->pretty)
55 1 6 if ($self->pretty)
64 6 30 if ($attr and %$attr)
80 0 36 unless my $tag = pop @{$$self{'_stack'};}
82 7 29 if ($self->{'_status'} == 1) { }
12 17 elsif ($self->{'_status'} == 2) { }
88 1 16 if ($self->pretty)
103 14 2 if ($self->{'_status'} == 1) { }
2 0 elsif ($self->{'_status'} == 3) { }