Apache-AntiSpam

 view release on metacpan or  search on metacpan

t/01_heuristic.t  view on Meta::CPAN

use lib 't/lib';
use strict;
use Test;
BEGIN { plan tests => 1 }

use FilterTest;
use Apache::AntiSpam::Heuristic;

my $out = filters('t/sample.txt', 'Apache::AntiSpam::Heuristic');
ok($out, qr/user at host dot network/);

t/02_htmlencode.t  view on Meta::CPAN

use lib 't/lib';
use strict;
use Test;
BEGIN { plan tests => 1 }

use FilterTest;
use Apache::AntiSpam::HTMLEncode;
my $out = filters('t/sample.txt', 'Apache::AntiSpam::HTMLEncode');

ok($out, qr/user@host.network/);

t/03_nospam.t  view on Meta::CPAN

use lib 't/lib';
use strict;
use Test;
BEGIN { plan tests => 1 }

use FilterTest;
use Apache::AntiSpam::NoSpam;

my $out = filters('t/sample.txt', 'Apache::AntiSpam::NoSpam');
ok($out, qr/user-nospam\@host\.network/);



( run in 0.246 second using v1.01-cache-2.11-cpan-87723dcf8b7 )