Branch Coverage

lib/Graph/Easy/As_vcg.pm
Criterion Covered Total %
branch 54 86 62.7


line true false branch
104 0 4 unless $name =~ /^x-vcg-/
128 1 2 if $shape eq 'invisible'
138 4 0 unless $style eq 'center'
168 11 22 if $class eq 'graph'
169 22 11 if $class ne ''
176 10 1 unless $v =~ /^[0-9]+\z/
181 9 24 unless $att eq ''
193 0 6 if $$e{'from'}->isa('Graph::Easy::Group') or $$e{'to'}->isa('Graph::Easy::Group')
217 1 5 if defined $class and $class ne ''
221 1 10 if (keys %{$$self{'_vcg_edge_classes'};} > 0)
235 2 9 if $label ne ''
253 0 33 if $class =~ /\./
259 11 0 if $txt ne ''
265 0 11 if $groups > 0
292 0 0 unless defined $$out{'fillcolor'}
303 0 0 if $att ne ''
324 0 11 unless defined $root
330 0 13 if exists $$n{'_p'}
332 13 0 if ($att ne '')
340 6 5 if $count > 0
348 1 12 if (@out == 0 and (scalar $n->predecessors || 0) == 0)
351 0 1 unless exists $$n{'_p'}
360 0 6 if exists $$e{'_p'}
393 6 13 unless defined $root
398 0 19 unless ref $$self{'graph'}
416 0 0 if (ref $$vcg_remap{$base_class}{$name} or ref $$vcg_remap{'all'}{$name}) { }
424 0 0 unless defined $$a{$name} and $$a{$name} ne 'inherit'
430 6 13 if ($self->isa('Graph::Easy::Edge')) { }
435 1 5 if defined $class and $class ne ''
444 0 13 if not $self->isa('Graph::Easy::Edge') and exists $$a{'label'} and $$a{'label'} eq $$self{'name'}
448 0 19 if ($$self{'bidirectional'})
456 0 19 if ($$self{'undirected'})
464 13 6 unless ($self->isa('Graph::Easy::Edge'))
467 0 13 if $style =~ /^double/
473 0 19 if ($class =~ /node/ and $shape eq 'plaintext')
477 0 0 if $$a{'fillcolor'} eq 'inherit'
480 13 6 unless $self->isa_cell
483 0 19 if ($shape eq 'point')
491 0 0 if $style eq ''
493 1 18 if ($shape eq 'invisible')
498 0 19 if $root ne '' and $root eq $$self{'name'}
505 37 3 unless $v =~ /^[0-9]+\z/
511 19 0 if $att ne ''