Branch Coverage

blib/lib/Test/Mock/Two.pm
Criterion Covered Total %
branch 18 22 81.8


line true false branch
30 1 10 unless (UNIVERSAL::isa($one, 'Test::Mock::One'))
34 0 10 unless ($one->{'X-Mock-Called'})
38 1 9 unless (defined $method)
42 8 1 if (my $cs = $one->{'X-Mock-Called-By'})
45 1 7 unless $rv
46 0 7 unless defined $func
48 6 1 if exists $rv->{$func}
51 0 2 unless defined $func
55 1 1 if (&any(sub { $func eq $_; } , keys %INC))
67 2 0 if defined $rv
75 2 1 if (my $rv = one_called($one, $method, $func)) { }