Branch Coverage

blib/lib/Mojolicious/Plugin/Qaptcha.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
28 2 0 if ($self->param('action') and $self->param('qaptcha_key')) { }
30 2 0 if ($self->param('action') eq 'qaptcha') { }
56 10 2 if $c->req->url->path->to_string ne $app->config->{'qaptcha_url'}
68 8 1 $$cfg{'inbuild_jquery'} && $$cfg{'inbuild_jquery'} == 1 ? :
70 8 1 $$cfg{'inbuild_jquery_ui'} && $$cfg{'inbuild_jquery_ui'} == 1 ? :
74 8 1 $$cfg{'inbuild_jquery_ui_touch'} && $$cfg{'inbuild_jquery_ui_touch'} == 1 ? :
116 2 5 if ($self->session('qaptcha_key'))
118 2 0 if ($self->req->param($self->session('qaptcha_key')) eq '')