Branch Coverage

lib/HTTPD/Realm.pm
Criterion Covered Total %
branch 30 48 62.5


line true false branch
77 0 9 if $$self{'crypt'}
78 9 0 if lc $self->authentication eq 'basic'
79 0 0 if lc $self->authentication eq 'digest'
104 0 1 unless $self->usertype =~ /sql/i
143 4 2 if ($p{$_} =~ /:[a-zA-Z]?(\d+)$/)
190 1 2 if ($CACHE{$config_file} and -C $config_file == $CACHE{$config_file}{'ctime'})
197 0 2 unless open CONF, $config_file
202 12 82 if (//i)
203 0 12 if $realm
205 0 12 unless $1
208 2 10 unless $first_realm
212 12 70 if (m[]i)
213 0 12 unless $realm
215 0 12 unless $realm->userdb and $realm->usertype
223 10 60 unless ($directive, $value) = /(\w+)\s*(.*)/
224 0 60 unless $realm
228 0 60 unless $VALID_DIRECTIVES{$directive}
231 0 60 $directive =~ /file/ ? :
232 2 58 if ($directive eq 'default')
233 0 2 if $default_realm
251 0 2 unless ref $r
253 1 1 if $writable
254 0 2 if $mode
278 0 0 if $taint =~ /\.\./ or not $taint =~ m[^/]