Condition Coverage

blib/lib/Test/Spec/Mocks.pm
Criterion Covered Total %
condition 26 52 50.0


and 3 conditions

line !l l&&!r l&&r condition
73 0 64 7 @_ > 0 and @_ % 2 == 0
0 63 1 @_ == 1 and ref $_[0] eq 'HASH'
0 0 63 @_ == 1 and not ref $_[0]
114 0 0 0 @_ == 1 and ref $_[0] eq 'HASH'
244 0 37 7 @_ == 1 and ref $_[0] eq 'CODE'
327 0 0 8 defined $a and defined $b
379 0 0 5 defined $n_times and $n_times =~ /^\A\d+\z/
411 0 0 17 defined $n_times and $n_times =~ /^\A\d+\z/
431 0 0 10 defined $n_times and $n_times =~ /^\A\d+\z/

or 2 conditions

line l !l condition
200 176 22 $self->{'__retval'} ||= sub { }
287 49 74 $self->{'__eq_args'} ||= undef
293 40 72 $self->{'__deep_args'} ||= undef
299 195 0 $self->{'__given_args'} ||= undef
359 3 154 $self->{'__exception'} ||= undef

or 3 conditions

line l !l&&r !l&&!r condition
59 0 0 60 @_ != 2 or ref $_[1]
94 71 0 0 'Test::Spec'->current_context || Carp::croak('Test::Spec::Mocks only works in conjunction with Test::Spec')
156 0 0 71 @_ or ref $args ne 'HASH'
307 0 3 7 not defined $self->_given_args or scalar @{$self->_eq_args;} != scalar @{$self->_given_args;}
326 8 0 0 defined $a or defined $b