Branch Coverage

inc/Test/Mock/Guard.pm
Criterion Covered Total %
branch 6 34 17.6


line true false branch
24 0 3 unless @args and @args % 2 == 0
29 0 3 unless defined $class_name and ref $method_defs eq 'HASH'
33 0 3 if (my $klass = blessed $class_name)
49 8 0 ref $$method_defs{$method_name} eq 'CODE' ? :
69 0 0 if (my $class_name = blessed $klass) { }
79 0 0 unless exists $$stash{$class_name}{$method_name}
86 0 0 unless @args and @args % 2 == 0
89 0 0 unless defined $class_name and ref $methods eq 'ARRAY'
92 0 0 if (my $klass = blessed $class_name)
121 0 8 if ($index < (max(keys %{$$stuff{'restore'};}) || 0)) { }
134 8 0 unless (keys %{$$stuff{'restore'};})
173 0 0 unless ($$mocked{$klass}{'_mocked'}{$method})
191 0 0 if (exists $$mocked{$klass}{$refaddr} and exists $$mocked{$klass}{$refaddr}{$method})
200 0 0 unless exists $$mocked{$klass}{$refaddr}{$method_name}{'called_count'}
208 0 0 if (exists $$mocked{$klass}{$refaddr} and exists $$mocked{$klass}{$refaddr}{$method}) { }
211 0 0 ref $val eq 'CODE' ? :
224 0 0 unless (keys %{$$mocked{$klass};} == 1)