Branch Coverage

blib/lib/CGI/Builder/Auth/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
144 4 2 if ($p{$_} =~ /:[a-zA-Z]?(\d+)$/)
191 1 2 if ($CACHE{$config_file} and -C $config_file == $CACHE{$config_file}{'ctime'})
198 0 2 unless open CONF, $config_file
203 12 82 if (//i)
204 0 12 if $realm
206 0 12 unless $1
209 2 10 unless $first_realm
213 12 70 if (m[]i)
214 0 12 unless $realm
216 0 12 unless $realm->userdb and $realm->usertype
224 10 60 unless ($directive, $value) = /(\w+)\s*(.*)/
225 0 60 unless $realm
229 0 60 unless $VALID_DIRECTIVES{$directive}
232 0 60 $directive =~ /file/ ? :
233 2 58 if ($directive eq 'default')
234 0 2 if $default_realm
252 0 2 unless ref $r
254 1 1 if $writable
255 0 2 if $mode
279 0 0 if $taint =~ /\.\./ or not $taint =~ m[^/]