Condition Coverage

blib/lib/MyLibrary/Resource.pm
Criterion Covered Total %
condition 2 150 1.3


and 3 conditions

line !l l&&!r l&&r condition
1050 0 0 0 $self->id and scalar $dbh->selectrow_array('SELECT resource_id FROM resources WHERE resource_id = ?', undef, $self->id) >= 1
1057 0 0 0 scalar @related_terms > 0 and @related_terms
1119 0 0 0 scalar @related_terms > 0 and @related_terms
1178 0 0 0 $opts{'list'} and not $opts{'field'}
1181 0 0 0 $opts{'field'} and $opts{'value'}
0 0 0 $opts{'field'} and $opts{'value'} and not $opts{'list'}
1206 0 0 0 @list_ids and scalar @list_ids >= 1
1217 0 0 0 not $sort and $list_of_ids
0 0 0 $sort and $sort eq 'name'
0 0 0 $sort and $sort eq 'name' and not $list_of_ids
0 0 0 $sort and $sort eq 'name' and not $list_of_ids and not $field
0 0 0 $sort and $sort eq 'name' and not $list_of_ids and not $field and not $value
0 0 0 $sort and $sort eq 'name'
0 0 0 $sort and $sort eq 'name' and not $list_of_ids
0 0 0 $sort and $sort eq 'name' and not $list_of_ids and $field
0 0 0 $sort and $sort eq 'name' and not $list_of_ids and $field and $value
0 0 0 not $sort and $sort eq 'name'
0 0 0 not $sort and $sort eq 'name' and not $list_of_ids
0 0 0 not $sort and $sort eq 'name' and not $list_of_ids and $field
0 0 0 not $sort and $sort eq 'name' and not $list_of_ids and $field and $value
0 0 0 $sort and $sort eq 'name'
0 0 0 $sort and $sort eq 'name' and $list_of_ids
0 0 0 $sort and $sort eq 'creator'
0 0 0 $sort and $sort eq 'creator' and $list_of_ids
1285 0 0 0 $first_parameter ne 'new' and $first_parameter ne 'del'
1288 0 0 0 @lcd_resources and scalar @lcd_resources > 0
1308 0 0 0 $first_parameter eq 'new' and @lcd_resources
0 0 0 $first_parameter eq 'del' and @lcd_resources
1461 0 0 0 not $opts{'strict'} =~ /^\d$/ and $opts{'strict'} == 1 || $opts{'strict'} == 0
1615 0 0 0 $opts{'resource_location'} and $opts{'id'}

or 3 conditions

line l !l&&r !l&&!r condition
773 0 0 0 $1 eq 'name' || $1 eq 'lcd' || $1 eq 'proxied' || $1 eq 'full_text' || $1 eq 'reference_linking'
916 1 0 0 $lcd eq '1' or $lcd eq '0'
955 1 0 0 $full_text eq '1' or $full_text eq '0'
969 0 0 0 $reference_linking eq '1' or $reference_linking eq '0'
983 0 0 0 $proxied eq '1' or $proxied eq '0'
1054 0 0 0 $return > 1 or not $return
1074 0 0 0 $return > 1 or not $return
1098 0 0 0 $return > 1 or not $return
1115 0 0 0 $return > 1 or not $return
1122 0 0 0 $return > 1 or not $return
1148 0 0 0 $rv < 1 or not $rv
1153 0 0 0 $rv < 1 or not $rv
1311 0 0 0 $rv > 1 or not $rv
1318 0 0 0 $rv > 1 or not $rv
1461 0 0 0 $opts{'strict'} == 1 || $opts{'strict'} == 0
0 0 0 not $opts{'strict'} =~ /^\d$/ and $opts{'strict'} == 1 || $opts{'strict'} == 0 or $opts{'strict'} ne 'off'
0 0 0 not $opts{'strict'} =~ /^\d$/ and $opts{'strict'} == 1 || $opts{'strict'} == 0 or $opts{'strict'} ne 'off' or $opts{'strict'} ne 'on'
1596 0 0 0 $opts{'resource_location'} or $opts{'location_note'}
1602 0 0 0 not $opts{'location_note'} or $opts{'location_note'} =~ /^\s+$/
1615 0 0 0 $opts{'resource_location'} || $opts{'id'}