| line |
true |
false |
branch |
|
81
|
3 |
0 |
if (%hParameters) |
|
118
|
0 |
0 |
if (defined $Term::RouterCLI::SSH_TTY) |
|
193
|
0 |
0 |
unless (defined $parameter) |
|
204
|
0 |
0 |
if $$self{'_oAuditLog'}{'_bEnabled'} == 1 |
|
206
|
0 |
0 |
unless (defined $$self{'_hFullCommandTree'}) |
|
214
|
0 |
0 |
if $$self{'_oHistory'}{'_bEnabled'} == 1 |
|
222
|
0 |
0 |
if $$self{'_oHistory'}{'_bEnabled'} == 1 |
|
234
|
0 |
0 |
if ($parameter eq 'term') { } |
|
275
|
0 |
0 |
unless $sArgsToComplete eq '' |
|
332
|
0 |
0 |
if (defined $sNewline) |
|
338
|
0 |
0 |
unless (defined $sNewline) |
|
340
|
0 |
0 |
if (not exists $$self{'_aFullCommandName'}[0] or $$self{'_aFullCommandName'}[0] eq '') { } |
|
369
|
0 |
0 |
if ($$self{'backslash_continues_command'} == 1) |
|
372
|
0 |
0 |
if ($bContinued == 1) |
|
380
|
0 |
0 |
if ($$self{'backslash_continues_command'} == 1 and $$self{'_iNumberOfContinuedLines'} > 0) { } |
|
383
|
0 |
0 |
if ($bContinued == 1) |
|
389
|
0 |
0 |
unless $$self{'_sCompleteRawline'} eq '' |
|
394
|
0 |
0 |
if ($$self{'_sCompleteRawline'} =~ /^\s*$/) |
|
396
|
0 |
0 |
if ($$self{'blank_repeats_cmd'} and $$self{'_sPreviousCommand'} ne '') { } |
|
403
|
0 |
0 |
unless defined $$self{'_sCompleteRawline'} and not $$self{'_sCompleteRawline'} =~ /^\s*$/ |
|
408
|
0 |
0 |
if (exists $$self{'_aFullCommandName'}) |
|
419
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'exclude_from_history'} or exists $$self{'_hCommandDirectives'}{'hidden'}) |
|
426
|
0 |
0 |
if ($iSaveToHistory == 1 and $sCommandString ne $$self{'_sPreviousCommand'} and $$self{'_oHistory'}{'_bEnabled'} == 1) |
|
436
|
0 |
0 |
if ($$self{'_oAuditLog'}{'_bEnabled'} == 1) |
|
553
|
0 |
0 |
unless (exists $$hCommandTree{$sToken}) |
|
570
|
0 |
0 |
unless (exists $$hCommandTree{$_}{'hidden'}) |
|
583
|
0 |
0 |
if ($iNumberOfCommandMatches == 1 and not exists $$hCommandTree{$aCommandsAtThisLevel[0]}{'exclude_from_completion'} and not exists $$hCommandTree{$aCommandsAtThisLevel[0]}{'hidden'}) |
|
603
|
0 |
0 |
if (exists $$hCommandTree{$sToken}) { } |
|
614
|
0 |
0 |
if (exists $$hCommandDirectives{'cmds'}) { } |
|
|
0 |
0 |
elsif ($sToken eq '') { } |
|
623
|
0 |
0 |
if (not defined $hCommandDirectives and exists $$hCommandTree{''} and $iNumberOfCommandMatches < 1) { } |
|
636
|
0 |
0 |
unless ($$aCommandTokens[$_] eq '') |
|
649
|
0 |
0 |
unless ($$aCommandTokens[$_] eq '') |
|
660
|
0 |
0 |
if (defined $hCommandDirectives) { } |
|
683
|
0 |
0 |
unless $$self{'suppress_completion_escape'} |
|
684
|
0 |
0 |
unless $$self{'suppress_completion_escape'} |
|
711
|
0 |
0 |
unless ($$self{'_hCommandDirectives'}) |
|
714
|
0 |
0 |
if (exists $$self{'_hCommandTreeAtLevel'}{''} and exists $$self{'_hCommandTreeAtLevel'}{''}{'code'}) |
|
730
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'minargs'} and @{$$self{'_aCommandArguments'};} < $$self{'_hCommandDirectives'}{'minargs'}) |
|
735
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'maxargs'} and @{$$self{'_aCommandArguments'};} > $$self{'_hCommandDirectives'}{'maxargs'}) |
|
742
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'auth'} and $$self{'_hCommandDirectives'}{'auth'} == 1) { } |
|
745
|
0 |
0 |
if ($iSuccess == 1) |
|
775
|
0 |
0 |
if (exists $$config{'auth'}{'max_attempts'}) |
|
778
|
0 |
0 |
if (exists $$config{'auth'}{'mode'}) |
|
783
|
0 |
0 |
if ($sAuthMode eq 'shared') { } |
|
|
0 |
0 |
elsif ($sAuthMode eq 'user') { } |
|
785
|
0 |
0 |
if (exists $$config{'auth'}{'password'}) |
|
793
|
0 |
0 |
if ($$sStoredPassword eq '') |
|
811
|
0 |
0 |
if ($$sEncryptedPassword eq $$sStoredPassword) |
|
817
|
0 |
0 |
if ($iAttempt == $iMaxAttempt) |
|
840
|
0 |
0 |
unless (exists $$config{'auth'}{'user'}{$sUsername}) |
|
848
|
0 |
0 |
if (exists $$config{'auth'}{'user'}{$sUsername}{'authmode'}) |
|
854
|
0 |
0 |
unless (exists $$config{'auth'}{'user'}{$sUsername}{'password'}) |
|
866
|
0 |
0 |
if ($$sEncryptedPassword eq $$sStoredPassword) |
|
872
|
0 |
0 |
if ($$self{'_oHistory'}{'_bEnabled'} == 1) |
|
885
|
0 |
0 |
if ($iAttempt == $iMaxAttempt) |
|
909
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'code'}) { } |
|
913
|
0 |
0 |
if (ref $oCode eq 'CODE') { } |
|
917
|
0 |
0 |
if $@ |
|
923
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'cmds'}) { } |
|
979
|
0 |
0 |
if defined $$self{'_iTokenNumber'} |
|
980
|
0 |
0 |
if defined $$self{'_iTokenOffset'} |
|
983
|
0 |
0 |
unless (defined $$self{'_aCommandTokens'}) |
|
1003
|
0 |
0 |
if ($iNumberOfArguments > 0) { } |
|
1013
|
0 |
0 |
if ($iNumberOfCommandsThatMatchAtThisLevel > 1) { } |
|
1034
|
0 |
0 |
if (exists $$self{'_hCommandDirectives'}{'args'} and not exists $$self{'_hCommandDirectives'}{'minargs'}) { } |
|
|
0 |
0 |
elsif (not exists $$self{'_hCommandDirectives'}{'args'} and (exists $$self{'_hCommandDirectives'}{'minargs'} and $$self{'_hCommandDirectives'}{'minargs'} > 0)) { } |
|
1040
|
0 |
0 |
if (ref $$self{'_hCommandDirectives'}{'args'} eq 'CODE') |
|
1066
|
0 |
0 |
if (not exists $$self{'_aFullCommandName'}[0] or $$self{'_aFullCommandName'}[0] eq '') { } |
|
1092
|
0 |
0 |
if ($$self{'_sStringToComplete'} ne 'NONE') |
|
1102
|
0 |
0 |
if ($$self{'_sStringToComplete'} eq '' and $iNumberOfCommands > 0) |