1 package inc::ExtractInlineTests;
5 with 'Dist::Zilla::Role::FileGatherer';
7 use File::Basename qw( basename );
10 use File::Temp qw( tempdir );
18 my $inline = Test::Inline->new(
20 ExtractHandler => 'My::Extract',
21 ContentHandler => 'My::Content',
22 OutputHandler => My::Output->new($self),
26 File::Find::Rule->file->name(qr/\.pod$/)->in('lib/Moose/Cookbook') ) {
40 return bless { dzil => $dzil }, $class;
48 $name =~ s/^moose_cookbook_//;
50 $self->{dzil}->add_file(
51 Dist::Zilla::File::InMemory->new(
52 name => "t/recipes/$name",