Branch Coverage

blib/lib/Mojolicious/Plugin/Util/RandomString.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
17 0 4 if (ref $param ne 'HASH')
22 4 0 if ($param)
28 2 2 unless ($read_config)
29 1 1 if (my $config_param = $mojo->config('Util-RandomString'))
45 14 6 if (ref $param{$_} and ref $param{$_} eq 'HASH') { }
47 0 14 if $created{$_}
50 0 14 unless ($generator{$_} = 'Session::Token'->new(%{$param{$_};}))
72 2 2 unless (exists $generator{'default'})
88 207 17 unless ($_[1])
91 2 205 if ($gen and not exists $generator{$gen})
100 12 5 @_ % 2 ? :
105 3 14 if (exists $overwrite{'entropy'}) { }
9 5 elsif (exists $overwrite{'length'}) { }
113 7 10 if ($gen eq 'default') { }
8 2 elsif ($setting{$gen}) { }
126 2 2 unless exists $mojo->renderer->helpers->{'random_string'}