Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (32 sloc) 997 Bytes
# Copyright 2002-2006, Paul Johnson (
# This software is free. It is licensed under the same terms as Perl itself.
# The latest version of this software should be available from my homepage:
use strict;
use warnings;
use File::Copy;
use Devel::Cover::Inc 0.59;
use Devel::Cover::Test 0.59;
my $base = $Devel::Cover::Inc::Base;
my $t = "md5";
my $ft = "$base/tests/$t";
my $fg = "$base/tests/trivial";
my $run_test = sub
my $test = shift;
copy($fg, $ft) or die "Cannot copy $fg to $ft: $!";
open T, ">>$ft" or die "Cannot open $ft: $!";
print T "# blah blah\n";
close T or die "Cannot close $ft: $!";
copy($fg, $ft) or die "Cannot copy $fg to $ft: $!";
$test->{test_parameters} .= " -merge 1";
my $test = Devel::Cover::Test->new
run_test => $run_test,
end => sub { unlink $ft },
Jump to Line
Something went wrong with that request. Please try again.