File Coverage

blib/lib/Acme/Web20/Validator/Rule/ReferToDelicious.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             #$Id: ReferToDelicious.pm,v 1.1 2005/11/14 03:39:09 naoya Exp $
2             package Acme::Web20::Validator::Rule::ReferToDelicious;
3 2     2   1088 use strict;
  2         5  
  2         71  
4 2     2   11 use warnings;
  2         5  
  2         56  
5 2     2   9 use base qw (Acme::Web20::Validator::Rule);
  2         4  
  2         337  
6              
7             __PACKAGE__->name('Refers to del.icio.us?');
8              
9             sub validate {
10 1     1 0 3 my ($self, $res) = @_;
11 1         6 $self->is_ok($res->content =~ m/del\.icio\.us/);
12             }
13              
14             1;