Condition Coverage

checks/debconf.pm
Criterion Covered Total %
condition 130 170 76.4


and 3 conditions

line !l l&&!r l&&r condition
79 5961 697 2155 not $binary and @files == 2
83 8627 0 186 $templates_file and $templates_file->is_open_ok
99 10 655 27 exists $template->{'template'} and exists $template->{'_choices'}
116 5421 0 165 $preinst and $preinst->is_file
5421 0 165 $preinst and $preinst->is_file and $preinst->is_open_ok
129 5480 0 106 $ctrl_config and $ctrl_config->is_file
130 5441 0 145 $ctrl_templates and $ctrl_templates->is_file
162 56 89 17 $seenconfig and not $seentemplates
145 0 17 $seenconfig and not $seentemplates and not $usesdbconfig
0 89 56 $seentemplates and not $seenconfig
89 16 40 $seentemplates and not $seenconfig and not $usespreinst
105 9 31 $seentemplates and not $seenconfig and not $usespreinst and $type ne 'udeb'
171 56 89 17 $seenconfig and not $ctrl_config->is_executable
223 98 0 22 defined $template->{'default'} and $template->{'default'} ne 'true'
98 14 8 defined $template->{'default'} and $template->{'default'} ne 'true' and $template->{'default'} ne 'false'
226 437 0 110 $template->{'choices'} and not $template->{'choices'} =~ /^\s*$/
246 443 96 8 $isselect and not exists $template->{'choices'}
272 0 22 525 $template->{'template'} and $template->{'type'}
295 14 89 8 $short and !($short =~ /:$/) || $short =~ /^(what|who|when|where|which|how)/i
315 337 174 22 defined $extended and $extended =~ /[^\?]\?(\s+|$)/
327 22 0 0 $type eq 'udeb' and $ttype eq 'text'
336 461 28 22 $template->{'description'} =~ /[ \'\"]yes[ \'\",;.]/i and $ttype eq 'boolean'
376 396 0 414 $path and $path->is_file
396 0 414 $path and $path->is_file and $path->is_open_ok
382 0 0 414 $fl and $fl =~ /^\#!/
399 66 4378 25 not $obsoleteconfmodule and m[(/usr/share/debconf/confmodule\.sh| Debian::DebConf::Client::ConfModule)]x
409 3606 567 296 $file eq 'config' and /db_input/
412 3141 20 1308 $file eq 'postinst' and not $db_input
3161 1274 34 $file eq 'postinst' and not $db_input and /db_input/
1294 14 20 $file eq 'postinst' and not $db_input and /db_input/ and not $config_calls_db_input
438 113 0 0 $$potential_makedev{$. - 1} && $priority eq 'low'
233 0 113 $potential_db_abuse{$template} and not $$potential_makedev{$. - 1} && $priority eq 'low'
233 50 63 $potential_db_abuse{$template} and not $$potential_makedev{$. - 1} && $priority eq 'low' and $priority =~ /^(low|medium)$/
458 32 4429 8 not $isdefault and /db_fset.*isdefault/
463 566 3782 121 not $db_purge and /db_purge/
470 17 18 0 $file eq 'postinst' and not $seenconfig
546 0 0 9 $path and $path->is_open_ok

or 2 conditions

line l !l condition
291 525 22 $template->{'type'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
120 25 0 2448 m[/usr/share/debconf/confmodule] or /(?:Debconf|Debian::DebConf)::Client::ConfModule/
136 106 56 5424 $seenconfig or $seentemplates
162 0 5424 $seenconfig or $seentemplates or $usespreinst
230 8 0 36 not $template->{$key} or $template->{$key} =~ /^\s*$/o
275 30 72 423 $template->{'type'} eq 'note' or $template->{'type'} eq 'text'
295 14 8 75 !($short =~ /:$/) || $short =~ /^(what|who|when|where|which|how)/i
395 368 0 4101 m[(?:\.|source)\s+/usr/share/debconf/confmodule] or /(?:use|require)\s+Debconf::Client::ConfModule/
450 0 0 4469 /^\s*(?:.*=\s*get|set)\s*\(\s*[\"\'](\S+?)[\"\']/ or /\b(?:metaget|settitle)\s*\(\s*[\"\'](\S+?)[\"\']/
468 126 106 182 $file eq 'postinst' or $file eq 'config'
470 0 0 35 $type eq 'udeb' or $file eq 'postinst' and not $seenconfig
480 121 0 18 $db_purge or $selfrelation->implies($ANY_DEBCONF)
487 0 36 0 $type eq 'udeb' or not $seenconfig
493 9 0 14 $type eq 'udeb' or $selfrelation->implies($ANY_DEBCONF)
515 322 0 217 $used or $pkg eq 'debconf'
322 9 208 $used or $pkg eq 'debconf' or $type eq 'udeb'
516 0 0 208 $template =~ m[^shared/packages-(wordlist|ispell)$] or $template =~ m[/languages$]
531 111 0 26 $alldependencies->implies($ANY_DEBCONF) or $usesdbconfig
542 0 9 153 $pkg eq 'debconf' or $type eq 'udeb'
550 9 0 18 m[/usr/share/debconf/confmodule] or /(?:Debconf|Debian::DebConf)::Client::ConfModule/