Branch Coverage

blib/lib/CGP/CLI.pm
Criterion Covered Total %
branch 0 996 0.0


line true false branch
270 0 0 unless (defined $$this{'theSocket'} and $$this{'theSocket'})
276 0 0 unless ($this->_parseResponse)
281 0 0 if ($$this{'isSecureLogin'} and $$this{'errMsg'} =~ /(\<.*\@*\>)/) { }
0 0 elsif ($$this{'isWebUserLogin'}) { }
283 0 0 if ($md5) { }
299 0 0 unless ($$this{'errCode'} == $CGP::CLI_CODE_PASSWORD)
308 0 0 unless ($this->isSuccess)
332 0 0 unless defined $$this{'isSecureLogin'}
333 0 0 unless defined $$this{'isWebUserLogin'}
336 0 0 unless defined $$this{'login'}
338 0 0 unless defined $$this{'password'}
341 0 0 if $$this{'isSecureLogin'} and $$this{'isWebUserLogin'}
348 0 0 if (not defined $$params{'connectNow'} or $$params{'connectNow'})
349 0 0 unless ($this->connect)
358 0 0 if $$this{'isConnected'}
400 0 0 unless defined $newPassword
408 0 0 unless defined $command
425 0 0 unless defined $domainName and defined $limit
428 0 0 if defined $filter
430 0 0 if $what
431 0 0 if defined $cookie
433 0 0 unless $this->_parseResponse
441 0 0 if $domainName
443 0 0 unless $this->_parseResponse
449 0 0 unless defined $domainName and defined $limit
452 0 0 if defined $filter
455 0 0 unless $this->_parseResponse
465 0 0 unless exists $params{'accountName'}
471 0 0 if exists $params{'accountType'}
472 0 0 if exists $params{'externalFlag'}
473 0 0 if exists $params{'settings'}
481 0 0 unless defined $oldAccountName and defined $newAccountName
489 0 0 unless defined $accountName
496 0 0 unless defined $accountName and defined $type
504 0 0 unless defined $accountName
507 0 0 unless $this->_parseResponse
517 0 0 unless defined $accountName
520 0 0 unless $this->_parseResponse
526 0 0 unless defined $accountName
538 0 0 unless defined $accountName
550 0 0 unless defined $accountName and defined $newPass
558 0 0 unless defined $accountName and defined $pass
567 0 0 unless defined $accountName
570 0 0 unless $this->_parseResponse
576 0 0 unless defined $accountName and defined $aliases
584 0 0 unless defined $accountName
587 0 0 unless $this->_parseResponse
593 0 0 unless defined $accountName and defined $aliases
602 0 0 unless defined $accountName
605 0 0 unless $this->_parseResponse
611 0 0 unless defined $accountName and defined $rules
619 0 0 unless defined $accountName
622 0 0 unless $this->_parseResponse
628 0 0 unless defined $accountName and defined $rules
635 0 0 unless defined $accountName and defined $rule
643 0 0 unless defined $accountName
646 0 0 unless $this->_parseResponse
652 0 0 unless defined $accountName and defined $rules
659 0 0 unless defined $accountName and defined $rule
667 0 0 unless defined $accountName
670 0 0 unless $this->_parseResponse
676 0 0 unless defined $accountName and defined $newRecords
684 0 0 unless defined $account
687 0 0 unless $this->_parseResponse
693 0 0 unless defined $account and defined $list
703 0 0 unless defined $account and defined $key
706 0 0 unless $this->_parseResponse
712 0 0 unless defined $account
715 0 0 unless $this->_parseResponse
722 0 0 unless defined $account
725 0 0 unless $this->_parseResponse
731 0 0 unless defined $account and defined $settings
741 0 0 unless defined $account and defined $settings
750 0 0 unless defined $account and defined $settings
761 0 0 unless defined $account
764 0 0 unless $this->_parseResponse
770 0 0 unless defined $account
773 0 0 unless $this->_parseResponse
780 0 0 unless defined $account
788 0 0 unless defined $account
792 0 0 if $authAccountName
794 0 0 unless $this->_parseResponse
800 0 0 unless defined $account and defined $newACL
803 0 0 if $authAccountName
811 0 0 unless defined $account and defined $authAccountName
816 0 0 unless $this->_parseResponse
826 0 0 if $domainName
828 0 0 unless $this->_parseResponse
834 0 0 unless defined $groupName
837 0 0 if $params
844 0 0 unless defined $oldGroupName and defined $newGroupName
852 0 0 unless defined $groupName
860 0 0 unless defined $groupName
863 0 0 unless $this->_parseResponse
869 0 0 unless defined $groupName and defined $params
882 0 0 if $domainName
884 0 0 unless $this->_parseResponse
890 0 0 unless defined $forwarderName and defined $address
897 0 0 unless defined $forwarderName and defined $newName
905 0 0 unless defined $forwarderName
913 0 0 unless defined $forwarderName
916 0 0 unless $this->_parseResponse
921 0 0 unless defined $domain and defined $forwarderAddress
924 0 0 unless $this->_parseResponse
934 0 0 unless $this->_parseResponse
941 0 0 unless $this->_parseResponse
949 0 0 if $domainName
952 0 0 unless $this->_parseResponse
963 0 0 if $domainName
965 0 0 unless $this->_parseResponse
973 0 0 unless exists $params{'settings'}
977 0 0 if exists $params{'domain'}
990 0 0 unless exists $params{'settings'}
994 0 0 if exists $params{'domain'}
1006 0 0 unless defined $domainName
1009 0 0 if $params
1016 0 0 unless defined $oldDomainName and defined $newDomainName
1024 0 0 unless defined $domainName
1027 0 0 if $force
1034 0 0 unless defined $domainName
1041 0 0 unless defined $domainName
1049 0 0 unless defined $domainName
1052 0 0 if $params
1059 0 0 unless defined $domainName
1062 0 0 if $params
1075 0 0 unless defined $domainName
1078 0 0 unless $this->_parseResponse
1084 0 0 unless defined $domainName and defined $rules
1092 0 0 unless defined $domainName
1095 0 0 unless $this->_parseResponse
1101 0 0 unless defined $domainName and defined $rules
1116 0 0 unless defined $domainName
1119 0 0 unless $this->_parseResponse
1125 0 0 unless defined $domainName and defined $rules
1144 0 0 if $domain
1146 0 0 unless $this->_parseResponse
1153 0 0 unless defined $domain and defined $aliases
1162 0 0 if $domain
1164 0 0 unless $this->_parseResponse
1171 0 0 if $domain
1178 0 0 if $domain
1186 0 0 unless $this->_parseResponse
1192 0 0 unless defined $certs
1201 0 0 unless $this->_parseResponse
1207 0 0 unless defined $certs
1217 0 0 unless $this->_parseResponse
1223 0 0 unless defined $dict
1233 0 0 unless $this->_parseResponse
1239 0 0 unless defined $dict
1250 0 0 unless $this->_parseResponse
1256 0 0 unless defined $dict
1265 0 0 unless defined $dict
1274 0 0 unless $this->_parseResponse
1294 0 0 unless $this->_parseResponse
1313 0 0 unless $this->_parseResponse
1332 0 0 unless $this->_parseResponse
1351 0 0 unless $this->_parseResponse
1357 0 0 unless $this->_parseResponse
1375 0 0 unless $this->_parseResponse
1381 0 0 unless $this->_parseResponse
1398 0 0 unless $this->_parseResponse
1405 0 0 unless $this->_parseResponse
1411 0 0 unless defined $limit
1414 0 0 if defined $filter
1417 0 0 unless $this->_parseResponse
1423 0 0 unless defined $limit
1426 0 0 if defined $filter
1429 0 0 unless $this->_parseResponse
1438 0 0 if $domain
1440 0 0 unless $this->_parseResponse
1448 0 0 unless exists $params{'settings'}
1452 0 0 if exists $params{'domain'}
1462 0 0 unless exists $params{'settings'}
1466 0 0 if exists $params{'domain'}
1476 0 0 if $domain
1479 0 0 unless $this->_parseResponse
1487 0 0 if $domain
1490 0 0 unless $this->_parseResponse
1497 0 0 unless exists $params{'settings'}
1501 0 0 if exists $params{'domain'}
1509 0 0 unless exists $params{'settings'}
1513 0 0 if exists $params{'domain'}
1522 0 0 unless exists $params{'settings'}
1526 0 0 if exists $params{'domain'}
1534 0 0 unless exists $params{'settings'}
1538 0 0 if exists $params{'domain'}
1548 0 0 if $domain
1551 0 0 unless $this->_parseResponse
1559 0 0 unless exists $params{'settings'}
1563 0 0 if exists $params{'domain'}
1573 0 0 unless exists $params{'settings'}
1577 0 0 if exists $params{'domain'}
1590 0 0 unless exists $params{'accountName'}
1594 0 0 if exists $params{'filter'}
1595 0 0 if exists $params{'authAccountName'}
1598 0 0 unless $this->_parseResponse
1606 0 0 unless defined $accountName and defined $mailboxName
1611 0 0 if $authAccountName
1612 0 0 if $class
1621 0 0 unless defined $accountName and defined $oldMailboxName and defined $newMailboxName
1627 0 0 if defined $authAccountName
1636 0 0 unless defined $accountName and defined $oldMailboxName and defined $newMailboxName
1642 0 0 if defined $authAccountName
1651 0 0 unless defined $accountName and defined $mailboxName
1656 0 0 if defined $authAccountName
1665 0 0 unless defined $accountName and defined $mailboxName
1670 0 0 if defined $authAccountName
1679 0 0 unless defined $accountName and defined $mailboxName
1684 0 0 if defined $authAccountName
1687 0 0 unless $this->_parseResponse
1694 0 0 unless defined $accountName and defined $mailboxName
1699 0 0 if defined $authAccountName
1702 0 0 unless $this->_parseResponse
1709 0 0 unless defined $accountName and defined $mailboxName and defined $newACL
1714 0 0 if defined $authAccountName
1724 0 0 unless defined $accountName and defined $mailboxName and defined $authAccountName
1732 0 0 unless $this->_parseResponse
1739 0 0 unless defined $accountName and defined $mailboxName and defined $class
1744 0 0 if defined $authAccountName
1748 0 0 unless $this->_parseResponse
1754 0 0 unless defined $accountName
1758 0 0 unless $this->_parseResponse
1764 0 0 unless defined $accountName and defined $newSubscription
1773 0 0 unless defined $accountName
1777 0 0 unless $this->_parseResponse
1783 0 0 unless defined $accountName and defined $newAliases
1798 0 0 if $domain
1800 0 0 unless $this->_parseResponse
1806 0 0 unless defined $domain and defined $alerts
1814 0 0 unless defined $domain and defined $alert
1822 0 0 unless defined $domain and defined $timeStamp
1831 0 0 unless $this->_parseResponse
1837 0 0 unless defined $account and defined $alerts
1845 0 0 unless defined $account and defined $alert
1853 0 0 unless defined $account and defined $timeStamp
1863 0 0 unless $this->_parseResponse
1869 0 0 unless defined $alerts
1877 0 0 unless defined $alert
1885 0 0 unless defined $timeStamp
1894 0 0 unless $this->_parseResponse
1900 0 0 unless defined $alerts
1908 0 0 unless defined $alert
1916 0 0 unless defined $timeStamp
1928 0 0 unless defined $accountName and defined $fileName
1931 0 0 if defined $position and $position != 0
1932 0 0 if defined $sliceSize
1935 0 0 unless $this->_parseResponse
1942 0 0 unless defined $accountName and defined $fileName and defined $data
1945 0 0 if defined $position and $position != 0
1956 0 0 unless defined $accountName and defined $oldFileName and defined $newFileName
1965 0 0 unless defined $accountName and defined $fileName
1974 0 0 unless defined $accountName
1977 0 0 if $filePath
1979 0 0 unless $this->_parseResponse
1986 0 0 unless defined $accountName
1989 0 0 unless $this->_parseResponse
1999 0 0 if $domain
2001 0 0 unless $this->_parseResponse
2008 0 0 if $domain
2010 0 0 unless $this->_parseResponse
2016 0 0 unless defined $accountName
2020 0 0 unless $this->_parseResponse
2026 0 0 unless defined $listName and defined $accountName
2034 0 0 unless defined $oldListName and defined $newListName
2042 0 0 unless defined $listName
2051 0 0 unless defined $listName
2055 0 0 unless $this->_parseResponse
2061 0 0 unless defined $listName and defined $dict
2070 0 0 unless defined $listName and defined $command and defined $subscriber
2079 0 0 unless defined $listName
2083 0 0 $filter eq '' ? :
0 0 if $filter or $limit
2084 0 0 if $limit
2087 0 0 unless $this->_parseResponse
2093 0 0 unless defined $listName and defined $address
2096 0 0 unless $this->_parseResponse
2102 0 0 unless defined $listName and defined $address and defined $mode
2110 0 0 unless defined $listName and defined $address
2113 0 0 if $fatal
2124 0 0 if $domainName
2126 0 0 unless $this->_parseResponse
2132 0 0 unless defined $domain and defined $skin
2141 0 0 unless defined $domain and defined $skin and defined $newName
2150 0 0 unless defined $domain and defined $skin
2159 0 0 unless defined $domain and defined $skin
2163 0 0 unless $this->_parseResponse
2169 0 0 unless defined $domain and defined $skin and defined $fileName
2173 0 0 unless $this->_parseResponse
2179 0 0 unless defined $domain and defined $skin and defined $fileName and defined $base64data
2187 0 0 unless defined $domain and defined $skin and defined $fileName
2198 0 0 unless $this->_parseResponse
2204 0 0 unless defined $skin
2213 0 0 unless defined $skin and defined $newName
2222 0 0 unless defined $skin
2231 0 0 unless defined $skin
2235 0 0 unless $this->_parseResponse
2241 0 0 unless defined $skin and defined $fileName
2245 0 0 unless $this->_parseResponse
2251 0 0 unless defined $skin and defined $fileName and defined $data
2260 0 0 unless defined $skin and defined $fileName
2271 0 0 unless $this->_parseResponse
2277 0 0 unless defined $skin
2286 0 0 unless defined $skin and defined $newName
2295 0 0 unless defined $skin
2304 0 0 unless defined $skin
2308 0 0 unless $this->_parseResponse
2314 0 0 unless defined $skin and defined $fileName
2318 0 0 unless $this->_parseResponse
2324 0 0 unless defined $skin and defined $fileName and defined $data
2333 0 0 unless defined $skin and defined $fileName
2347 0 0 if $domainName
2348 0 0 if $path
2351 0 0 unless $this->_parseResponse
2357 0 0 unless defined $domainName and defined $path
2362 0 0 unless $this->_parseResponse
2368 0 0 unless defined $domainName and defined $path and defined $data
2379 0 0 unless defined $domainName and defined $path
2383 0 0 if $domainName
2384 0 0 if $path
2394 0 0 if $domainName
2405 0 0 unless defined $accountName and defined $ipAddress
2408 0 0 if $origAddress
2409 0 0 if $wml
2410 0 0 if $skin
2413 0 0 unless $this->_parseResponse
2419 0 0 unless defined $accountName and defined $ipAddress
2422 0 0 if $origAddress
2424 0 0 unless $this->_parseResponse
2430 0 0 unless defined $accountName
2433 0 0 if $address
2436 0 0 unless $this->_parseResponse
2442 0 0 unless defined $sessionID
2445 0 0 if $domain
2448 0 0 unless $this->_parseResponse
2453 0 0 unless defined $sessionID
2456 0 0 if $domain
2459 0 0 unless $this->_parseResponse
2467 0 0 unless defined $sessionID
2469 0 0 if $domain
2476 0 0 unless defined $sessionID
2478 0 0 if $domain
2489 0 0 unless defined $domain
2492 0 0 if $language
2500 0 0 unless defined $domain
2503 0 0 if $language
2505 0 0 unless $this->_parseResponse
2511 0 0 unless defined $domain and defined $fileName
2515 0 0 unless $this->_parseResponse
2521 0 0 unless defined $domain and defined $fileName and defined $base64data
2529 0 0 unless defined $domain and defined $fileName
2541 0 0 if $language
2550 0 0 if $language
2552 0 0 unless $this->_parseResponse
2558 0 0 unless defined $fileName
2562 0 0 unless $this->_parseResponse
2568 0 0 unless defined $fileName and defined $base64data
2576 0 0 unless defined $fileName
2588 0 0 if $language
2597 0 0 if $language
2599 0 0 unless $this->_parseResponse
2605 0 0 unless defined $fileName
2609 0 0 unless $this->_parseResponse
2615 0 0 unless defined $fileName and defined $base64data
2623 0 0 unless defined $fileName
2636 0 0 unless $this->_parseResponse
2642 0 0 unless defined $moduleName and defined $newSettings
2650 0 0 unless defined $moduleName and defined $newSettings
2659 0 0 unless $this->_parseResponse
2664 0 0 unless defined $newSettings
2673 0 0 unless $this->_parseResponse
2678 0 0 unless defined $newSettings
2686 0 0 unless $this->_parseResponse
2691 0 0 unless defined $newSettings
2701 0 0 unless $this->_parseResponse
2708 0 0 unless $this->_parseResponse
2715 0 0 unless $this->_parseResponse
2722 0 0 unless $this->_parseResponse
2728 0 0 unless $this->_parseResponse
2734 0 0 unless $this->_parseResponse
2740 0 0 unless $this->_parseResponse
2747 0 0 unless $this->_parseResponse
2754 0 0 unless $this->_parseResponse
2760 0 0 unless defined $addresses
2769 0 0 unless defined $addresses
2777 0 0 unless defined $addresses
2785 0 0 unless defined $addresses
2792 0 0 unless defined $addresses
2799 0 0 unless defined $addresses
2806 0 0 unless defined $addresses
2814 0 0 unless defined $settings
2822 0 0 unless defined $settings
2831 0 0 unless $this->_parseResponse
2838 0 0 unless $this->_parseResponse
2845 0 0 unless $this->_parseResponse
2852 0 0 unless $this->_parseResponse
2858 0 0 unless $this->_parseResponse
2864 0 0 unless $this->_parseResponse
2870 0 0 unless $this->_parseResponse
2877 0 0 unless $this->_parseResponse
2883 0 0 unless $this->_parseResponse
2889 0 0 unless defined $addresses
2897 0 0 unless defined $addresses
2905 0 0 unless defined $addresses
2913 0 0 unless defined $addresses
2920 0 0 unless defined $addresses
2927 0 0 unless defined $addresses
2934 0 0 unless defined $addresses
2942 0 0 unless defined $settings
2951 0 0 unless $this->_parseResponse
2957 0 0 unless defined $rules
2967 0 0 unless $this->_parseResponse
2973 0 0 unless defined $rules
2982 0 0 unless $this->_parseResponse
2988 0 0 unless defined $rules
3005 0 0 unless $this->_parseResponse
3011 0 0 unless defined $rules
3028 0 0 unless $this->_parseResponse
3034 0 0 unless defined $rules
3051 0 0 unless $this->_parseResponse
3057 0 0 unless defined $rules
3082 0 0 unless $this->_parseResponse
3088 0 0 unless defined $table
3097 0 0 unless $this->_parseResponse
3103 0 0 unless defined $settings
3113 0 0 unless $this->_parseResponse
3119 0 0 unless defined $table
3129 0 0 unless $this->_parseResponse
3134 0 0 unless defined $settings
3143 0 0 unless $this->_parseResponse
3148 0 0 unless defined $settings
3157 0 0 unless defined $address
3160 0 0 if $mail
3162 0 0 unless $this->_parseResponse
3172 0 0 unless $this->_parseResponse
3178 0 0 unless $this->_parseResponse
3193 0 0 unless defined $account
3196 0 0 if $key
3198 0 0 unless $this->_parseResponse
3204 0 0 unless defined $account
3207 0 0 if $key
3214 0 0 unless defined $domain
3217 0 0 if $key
3219 0 0 unless $this->_parseResponse
3225 0 0 unless defined $domain
3228 0 0 if $key
3238 0 0 unless defined $level and defined $msg
3245 0 0 unless defined $queue
3252 0 0 unless defined $msg
3255 0 0 if $text
3261 0 0 unless defined $moduleName and defined $queueName
3265 0 0 unless $this->_parseResponse
3272 0 0 unless $this->_parseResponse
3278 0 0 unless $this->_parseResponse
3284 0 0 unless $this->_parseResponse
3289 0 0 unless defined $addresses
3297 0 0 unless defined $account and defined $subset
3300 0 0 unless $this->_parseResponse
3311 0 0 if ($code) { }
3330 0 0 if $$this{'debug'}
3334 0 0 unless $1
3336 0 0 if ($1 == $CGP::CLI_CODE_OK_INLINE) { }
3351 0 0 if (not defined $data) { }
0 0 elsif (ref $data eq 'HASH') { }
0 0 elsif (ref $data eq 'ARRAY') { }
3368 0 0 if (not $first) { }
3374 0 0 if ($data =~ /[\W_]/ or $data eq '') { }
3375 0 0 if ($translate)
3403 0 0 if ($$this{'errCode'} == $CGP::CLI_CODE_OK_INLINE)
3413 0 0 if ($firstLine)
3415 0 0 if ($1)
3416 0 0 if $1 eq '('
3417 0 0 if $1 eq '{'
3423 0 0 if $line =~ /$lastLine/
3432 0 0 if (time - $$this{'lastAccess'} > $CGP::TIMEOUT or not $$this{'theSocket'} or $$this{'theSocket'}->error)
3435 0 0 if $$this{'theSocket'}
3436 0 0 unless ($this->connect)
3442 0 0 if $$this{'debug'}
3463 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq '"') { }
0 0 elsif (substr($$this{'data'}, $$this{'span'}, 1) eq '[') { }
3471 0 0 if ($isQuoted) { }
0 0 elsif ($isBlock) { }
0 0 elsif ($ch =~ /[-a-zA-Z0-9\x80-\xff_\.\@\!\#\%\:]/) { }
3472 0 0 if ($ch eq '\\') { }
0 0 elsif ($ch eq '"') { }
3473 0 0 if (substr($$this{'data'}, $$this{'span'} + 1, 3) =~ /^(?:\"|\\|\d\d\d)/)
3475 0 0 if ($ch =~ /\d\d\d/) { }
3480 0 0 unless $$this{'translateStrings'}
3486 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq '"') { }
3493 0 0 if ($ch eq ']')
3496 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq '[') { }
3525 0 0 if ($ch eq '{') { }
0 0 elsif ($ch eq '(') { }
3541 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq ')') { }
3548 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq ',') { }
0 0 elsif (substr($$this{'data'}, $$this{'span'}, 1) eq ')') { }
3564 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) eq '}') { }
3570 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) ne '=')
3574 0 0 if (substr($$this{'data'}, $$this{'span'}, 1) ne ';')