Branch Coverage

blib/lib/Terminal/Identify.pm
Criterion Covered Total %
branch 0 62 0.0


line true false branch
137 0 0 defined $_[0] && $_[0] ne '' ? :
159 0 0 if (defined $_[0] and length $_[0] > 0) { }
189 0 0 unless (-f $file)
246 0 0 if ($line =~ m[^/.*/(.*)$]u)
295 0 0 defined $term_path ? :
342 0 0 if (not defined $term_path or $term_path eq '') { }
347 0 0 if ($term_path =~ m[^.*/dev/(pts/\d+)$]u) { }
0 0 elsif ($term_path =~ m[^.*/dev/(tty\d+)$]u) { }
362 0 0 if ($shell ne "nologin" and $shell ne "sync" and $shell ne "false")
364 0 0 if (grep /^$user$/u, @user_array and grep /^$shell$/u, @shell_array) { }
0 0 elsif ($user eq $username) { }
413 0 0 if ($process ne "")
419 0 0 if (@match == 0)
433 0 0 if ($process ne "")
487 0 0 if (@result == 0)
496 0 0 if (@match > 0) { }
526 0 0 if ($terminal_command =~ /$re_ws/u) { }
538 0 0 if (`which $_` ne "")
544 0 0 if (@progs == 0) { }
548 0 0 if (@progs > 1) { }
575 0 0 if ($terminal_path =~ /$re_pp/u) { }
595 0 0 if (defined $termhash{$terminal_name}) { }
619 0 0 if ($OutputFormat ne '') { }
624 0 0 defined $_[0] ? :
634 0 0 if ($terminal_command eq "")
645 0 0 if ($terminal_name =~ /^sshd.*/u) { }
0 0 elsif ($terminal_name =~ /^login.*/u) { }
651 0 0 if ($flag eq '') { }
0 0 elsif ($flag eq 'FTN') { }
0 0 elsif ($flag eq 'PATH') { }
0 0 elsif ($flag eq 'PROC') { }