Branch Coverage

blib/lib/Authen/Credential.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
57 15 4 if $_LoadedModule{$module}
59 1 3 if ($@) { }
76 0 27 unless $ValidationSpec{$scheme}
105 19 18 if ($class eq "Authen::Credential")
131 0 23 unless @_ == 1 and defined $_[0] and ref $_[0] eq ""
134 1 22 if $string eq ""
135 1 21 unless $string =~ /^[$_ValChars$_SepChars\%\=]+$/o
138 2 19 unless @list and $list[0] =~ /^($_IdRe)$/o
142 24 2 if ($kv =~ /^($_IdRe)\=([$_ValChars\%]*)$/o) { }
144 1 23 if exists $option{$1}
161 0 0 if @_
162 0 0 unless wantarray
170 0 3 if @_
171 0 3 unless $self->{'scheme'}
174 3 3 if $key eq "scheme"
189 0 11 if @_
202 0 9 if @_
214 0 2 unless @_ == 1 and defined $_[0] and ref $_[0] eq ""
218 2 0 if $preparator