File Coverage

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


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