Branch Coverage

blib/lib/Mojolicious/Plugin/CSRF.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
16 1 0 ref $conf eq 'HASH' ? :
28 3 0 if ($format eq "html" and $$output)
32 2 1 if ($forms->size)
87 0 3 if $self->c->app->static->file($path)
90 3 0 $self->methods && ref $self->methods eq 'ARRAY' ? :
91 0 3 unless @methods
92 10 2 unless uc $_ eq $method
1 2 unless grep {lc $_ eq "any" unless uc $_ eq $method;} @methods
94 2 0 if ($self->include and ref $self->include eq "ARRAY")
97 2 0 if ($path =~ /$_/u)
102 0 2 unless $include
105 2 0 if ($self->exclude and ref $self->exclude eq "ARRAY")
107 0 2 if $path =~ /$_/u
114 1 1 !($session && ($param && $param eq $session || $header && $header eq $session)) ? :