File Coverage

blib/lib/Articulate/Validation/NoScript.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 17 76.4


line stmt bran cond sub pod time code
1             package Articulate::Validation::NoScript;
2 1     1   959 use strict;
  1         3  
  1         31  
3 1     1   4 use warnings;
  1         0  
  1         21  
4 1     1   4 use Moo;
  1         1  
  1         5  
5              
6              
7             =head1 NAME
8              
9             Articulate::Validation::NoScript
10              
11             =head1 DESCRIPTION
12              
13             An example validator to do a rudimentary check to see if the content has the text "
14              
15             It doesn't thoroughly prevent Javascript injection, an onload attribute might do just as well.
16              
17             =head1 METHODS
18              
19             =head3 validate
20              
21             Returns true if the content contains qr/