Apache-Reload
view release on metacpan or search on metacpan
my $location = '/reload';
my @tests = qw(const prototype simple subpackage);
my $header = join '', <DATA>;
my $initial = <<'EOF';
sub simple { 'simple' }
use constant const => 'const';
sub prototype($) { 'prototype' }
sub promised;
EOF
my $modified = <<'EOF';
sub simple { 'SIMPLE' }
use constant const => 'CONST';
sub prototype($$) { 'PROTOTYPE' }
EOF
t_write_test_lib($test_file, $header, $initial);
{
my $expected = join '', map { "$_:$_\n" } sort @tests;
my $received = GET $location;
ok t_cmp($received->content, $expected, 'Initial');
}
( run in 0.481 second using v1.01-cache-2.11-cpan-1e74a51a04c )