DBIx-Class-Schema-Loader
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
maint/travis-ci_scripts/lib/TAP/Harness/IgnoreNonessentialDzilAutogeneratedTests.pm view on Meta::CPAN
my ($run_tests, $skip_tests);
TESTFILE:
for (@all_tests) {
my $fn = File::Spec::Unix->catpath( File::Spec->splitpath( $_ ) );
if (my $REs = $frivolous_test_map->{
(first { $fn =~ $_ } keys %$frivolous_test_map ) || ''
}) {
my $slurptest = do { local (@ARGV, $/) = $fn; <> };
$slurptest =~ $_ and push @$skip_tests, $fn and next TESTFILE for @$REs;
}
push @$run_tests, $fn;
}
if ($skip_tests) {
for my $tfn (@$skip_tests) {
t/25backcompat.t view on Meta::CPAN
_write_custom_content($schema, $from_class, $content);
}
}
sub _write_custom_content {
my ($schema, $class, $content) = @_;
my $pm = $schema->loader->get_dump_filename($class);
{
local ($^I, @ARGV) = ('.bak', $pm);
while (<>) {
if (/DO NOT MODIFY THIS OR ANYTHING ABOVE/) {
print;
print $content;
}
else {
print;
}
}
close ARGV;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.493 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )