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 59 $pkg =~ s/^\+// ? :
28 8 1 if $config
35 0 65 unless $self->{'config'}
37 36 29 if ($self->is_cluster($cluster_or_node)) { }
29 0 elsif ($self->is_node($cluster_or_node)) { }
52 0 23 if (is_hash_ref($args)) { }
63 25 7 if $self->is_node($cluster_or_node)
64 7 0 if ($self->is_cluster($cluster_or_node))
78 16 7 wantarray ? :
84 0 59 unless $self->{'config'}
86 0 59 if (is_hash_ref($args))
87 0 0 unless $args->{'strategy'}
97 18 41 if (is_array_ref($cluster_info)) { }
41 0 elsif (is_hash_ref($cluster_info)) { }
133 22 7 is_array_ref($cluster_info) ? :
134 27 2 wantarray ? :
139 61 62 exists $self->{'config'}{'clusters'}{$cluster} ? :
144 58 7 exists $self->{'config'}{'node'}{$node} ? :