Branch Coverage

blib/lib/Data/RuledCluster.pm
Criterion Covered Total %
branch 27 38 71.0


line true false branch
13 0 6 @_ == 1 ? :
21 0 55 $pkg =~ s/^\+// ? :
28 8 1 if $config
35 0 59 unless $self->{'config'}
37 33 26 if ($self->is_cluster($cluster_or_node)) { }
26 0 elsif ($self->is_node($cluster_or_node)) { }
52 0 22 if (is_hash_ref($args)) { }
63 23 7 if $self->is_node($cluster_or_node)
64 7 0 if ($self->is_cluster($cluster_or_node))
78 16 6 wantarray ? :
84 0 55 unless $self->{'config'}
86 0 55 if (is_hash_ref($args))
87 0 0 unless $args->{'strategy'}
97 18 37 if (is_array_ref($cluster_info)) { }
37 0 elsif (is_hash_ref($cluster_info)) { }
133 22 7 is_array_ref($cluster_info) ? :
134 27 2 wantarray ? :
139 58 56 exists $self->{'config'}{'clusters'}{$cluster} ? :
144 53 7 exists $self->{'config'}{'node'}{$node} ? :