Branch Coverage

blib/lib/Mojolicious/Plugin/TagHelpers/MailToChiffre.pm
Criterion Covered Total %
branch 45 56 80.3


line true false branch
28 0 5 if (my $config_param = $app->config('TagHelpers-MailToChiffre'))
37 5 0 if ($plugin_param->{'pattern_rotate'} and $plugin_param->{'pattern_rotate'} =~ /^\d+$/u)
55 1 1 if ($plugin_param->{'method_name'})
95 1 16 unless my $address = shift()
102 0 16 if (ref $_[-1] and ref $_[-1] eq 'CODE')
132 14 2 if ($routes->lookup('mailToChiffre')) { }
144 38 10 unless exists $param{$_}
147 1 9 unless ($param{$_})
153 3 6 if (ref $param{$_}) { }
156 4 0 if $_
160 2 1 if (@temp) { }
186 2 14 if ($no_fallback) { }
189 1 1 if ($plugin->{'no_inline'}) { }
203 1 15 if ($plugin->{'no_inline'}) { }
207 1 14 if $no_fallback
212 0 16 if ($text) { }
232 2 4 if $plugin->css
234 1 3 if ($plugin->{'no_inline'}) { }
253 0 4 if $plugin->js
317 1 3 if ($plugin->{'no_inline'})
365 0 12 unless ($host and $account)
377 8 28 if (my(@val) = @{$p->every_param($type);})
439 4 0 if ($factors{$_} > 1) { }
446 0 4 unless $x == 1
454 0 34 unless my $seq = shift()
467 18 374 if ($c =~ tr/A-Za-z/N-ZA-Mn-za-m/) { }
374 0 elsif ($c eq '-') { }
508 21 460 if ($c =~ /[a-zA-Z]/u) { }