Branch Coverage

blib/lib/Circle/Collection.pm
Criterion Covered Total %
branch 33 80 41.2


line true false branch
24 0 16 unless my $name = $args{'name'}
26 0 16 unless my $attrs = $args{'attrs'}
27 0 16 unless ref $attrs eq 'ARRAY'
32 0 16 unless my $storage = $args{'storage'}
45 48 4 unless $a->{'transient'}
53 4 12 if $args{'commands'}
59 8 8 if (ref $storage eq 'HASH') { }
4 4 elsif ($storage eq 'methods') { }
4 0 elsif ($storage eq 'array') { }
99 0 0 unless defined $idx
111 16 0 unless (exists $commands{'list'})
112 0 16 unless defined $method_list
124 0 0 unless (@items)
135 0 0 exists $attrs{$attr}{'show'} ? :
150 16 32 if $_ eq $keyattr
154 4 28 if exists $attrs{$_}{'default'}
159 24 8 unless $attrs{$_}{'nomod'}
162 12 4 unless (exists $commands{'add'})
163 0 12 unless defined $method_add
174 0 0 if ($self->$method_get($key))
184 0 0 unless (eval { do { $self->$method_add($key, $item); 1 } })
196 12 4 unless (exists $commands{'mod'})
197 0 12 unless defined $method_get
210 0 0 unless ($item)
219 0 0 if ($method_set) { }
232 12 4 unless (exists $commands{'del'})
233 0 12 unless defined $method_del
245 0 0 unless ($item)
250 0 0 unless (eval { do { $self->$method_del($key, $item); 1 } })
280 12 4 if (not defined $config or $config)
284 0 12 unless $type_array or $type_hash
296 0 0 unless my $ynodes = $ynode->{$name}
298 0 0 $type_array ? :
300 0 0 $type_array ? :
303 0 0 if $type_hash
307 0 0 if (ref $method_load or $method_load and $self->can($method_load))
317 0 0 $type_array ? :
318 0 0 $type_array ? :
325 0 0 if (ref $method_store or $method_store and $self->can($method_store))
331 0 0 $type_array ? :