Branch Coverage

blib/lib/Mojolicious/Plugin/TagHelpers/MailToChiffre.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
28 0 4 if (my $config_param = $app->config('TagHelpers-MailToChiffre'))
37 4 0 if ($plugin_param->{'pattern_rotate'} and $plugin_param->{'pattern_rotate'} =~ /^\d+$/u)
53 1 1 if ($plugin_param->{'method_name'})
93 1 15 unless my $address = shift()
100 0 15 if (ref $_[-1] and ref $_[-1] eq 'CODE')
130 14 1 if ($routes->lookup('mailToChiffre')) { }
142 35 10 unless exists $param{$_}
145 1 9 unless ($param{$_})
151 3 6 if (ref $param{$_}) { }
154 4 0 if $_
158 2 1 if (@temp) { }
180 1 14 if ($no_fallback)
186 1 14 if $no_fallback
190 0 15 if ($text) { }
210 2 3 if $plugin->css
226 0 3 if $plugin->js
321 0 12 unless ($host and $account)
333 8 28 if (my(@val) = @{$p->every_param($type);})
395 3 0 if ($factors{$_} > 1) { }
402 0 3 unless $x == 1
410 0 34 unless my $seq = shift()
423 18 290 if ($c =~ tr/A-Za-z/N-ZA-Mn-za-m/) { }
290 0 elsif ($c eq '-') { }
464 21 341 if ($c =~ /[a-zA-Z]/u) { }