Condition Coverage

blib/lib/CPAN/Dependency.pm
Criterion Covered Total %
condition 7 57 12.2


and 2 conditions

line l !l condition
284 0 1 carp('error: No argument given to attribute process()') and return
312 0 1 carp('error: No argument given to attribute skip()') and return
340 0 0 $self->_vprint(" >> ${YELLOW}skip: already processed$RESET\n") and next
343 0 0 $self->_vprint(" >> ${YELLOW}skip: is a bundle$RESET\n") and next
356 0 0 $self->_vprint(" >> $BOLD${RED}CPANPLUS error: $@$RESET\n") and next
424 0 0 $self->_vprint(" >> $BOLD${YELLOW}ignoring prereq $reqmod$RESET\n") and next
427 0 0 $self->_vprint(" >> $BOLD$YELLOW$reqmod is in Perl core$RESET\n") and next
431 0 0 $self->_vprint(" >> $BOLD${RED}error: no dist found for $reqmod$RESET\n") and $deps{$reqmod} = 1
0 0 $self->_vprint(" >> $BOLD${RED}error: no dist found for $reqmod$RESET\n") and $deps{$reqmod} = 1 and next
434 0 0 $self->_vprint(" >> $BOLD$YELLOW$reqmod is in Perl core$RESET\n") and next
527 0 1 carp('error: No argument given to function save_deps_tree()') and return
559 0 1 carp('error: No argument given to function load_deps_tree()') and return
592 0 1 carp('error: No argument given to function load_cpants_db()') and return

and 3 conditions

line !l l&&!r l&&r condition
238 0 11 0 defined $self->$attr($args{$attr}) and delete $args{$attr}
373 0 0 0 defined $deps and ref $deps eq 'HASH'
0 0 0 defined $deps and ref $deps eq 'HASH' and keys %$deps
452 0 0 0 defined $where and -d $where

or 2 conditions

line l !l condition
402 0 0 $deps ||= {}
678 0 0 $$self{'prereqs'}{$reqdist}{'cpanid'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
218 0 0 7 ref $_[0] || $_[0]
340 0 0 0 not defined $dist or $$self{'skip'}{$dist_name}++
383 0 0 0 $1 || $2
638 0 0 0 $distinfo[2] || eval { do { $dist_cpan_info->author->cpanid } }
0 0 0 $distinfo[3] || eval { do { $dist_cpan_info->author->author } }