Branch Coverage

blib/lib/Assert/Refute/Contract.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
101 0 11 unless @_ % 2
151 0 25 if @missing
154 0 25 unless UNIVERSAL::isa($opt{'code'}, 'CODE')
156 0 25 if @extra
159 15 10 $opt{'need_object'} ? :
166 20 5 unless defined $args
167 1 24 unless ref $args eq 'ARRAY'
168 21 4 if $args->[1] < 0
169 1 24 unless $args->[0] <= $args->[1]
199 0 1 if @dont
202 0 1 if (defined $opt{'backend'})
223 43 0 unless ref $c
227 5 38 unless $self->{'args'}[0] <= @args and @args <= $self->{'args'}[1]
229 18 20 if $self->{'need_object'}
233 34 0 unless $c->is_done
236 4 34 unless (eval { do { $self->{'code'}->(@args); $c->done_testing unless $c->is_done; 1 } })