| blib/lib/CGI/Builder/Auth/Realm.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 24 | 59 | 40.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 191 | 2 | 0 | 1 | $CACHE{$config_file} and -C $config_file == $CACHE{$config_file}{'ctime'} |
| 216 | 0 | 0 | 12 | $realm->userdb and $realm->usertype |
| line | l | !l | condition |
|---|---|---|---|
| 32 | 0 | 3 | (shift())->{'mode'} || 420 |
| 36 | 1 | 0 | (shift())->{'database'} || 'www@localhost' |
| 64 | 1 | 9 | (shift())->{'authentication'} || 'Basic' |
| 68 | 0 | 0 | (shift())->{'driver'} || 'mSQL' |
| 72 | 0 | 4 | (shift())->{'server'} || 'apache' |
| 108 | 1 | 0 | $result{'host'} ||= 'localhost' |
| 114 | 1 | 0 | $$u{'table'} || 'users' |
| 116 | 1 | 0 | $$u{'uid'} || $$g{'uid'} || 'users' |
| 117 | 1 | 0 | $$g{'uid'} || $$u{'uid'} || 'users' |
| 119 | 0 | 1 | $$u{'password'} || 'password' |
| 120 | 1 | 0 | $$u{'uid_len'} || $$u{'user_len'} || 12 |
| 121 | 1 | 0 | $$g{'group_len'} || 20 |
| 131 | 3 | 0 | $server || $self->server || 'apache' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 19 | 18 | 0 | 0 | $$self{'users'} || $$self{'userfile'} |
| 24 | 10 | 0 | 0 | $$self{'groups'} || $$self{'groupfile'} |
| 55 | 0 | 18 | 0 | $$self{'usertype'} || $$self{'type'} |
| 60 | 0 | 5 | 0 | $$self{'grouptype'} || $$self{'type'} |
| 122 | 0 | 0 | 1 | $$u{'password_len'} || (lc $self->authentication eq 'digest' ? 35 + length($self->name) + $result{'userfield_len'} : 13) |
| 131 | 0 | 3 | 0 | $mode || $self->mode |
| 242 | 2 | 0 | 0 | $default_realm || $first_realm |
| 273 | 6 | 0 | 0 | $realm ||= $$self{'default_realm'} |
| 279 | 0 | 0 | 0 | $taint =~ /\.\./ or not $taint =~ m[^/] |