Skip to content

Commit

Permalink
makefiles are not indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
andreeap committed Feb 24, 2015
1 parent 916b0e3 commit 94e8e90
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/document/file.t
Expand Up @@ -217,6 +217,26 @@ subtest 'Packages starting with underscore are not indexed' => sub {
is( $file->module->[0]->indexed, 0, 'Package is not indexed' );
};

subtest 'files listed under other files' => sub {
my $content = <<'END';
=head1 NAME
Makefile.PL - configure Makefile
=head1 DESCRIPTION
just a makefile description
END
my $file = new_file_doc(
name => 'Makefile.PL',
content_cb => sub { \$content }
);

$file->set_indexed( {} );
is( $file->indexed, 0, 'File listed under other files is not indexed' );
};

subtest 'pod name/package mismatch' => sub {
my $content = <<'END';
package
Expand Down

0 comments on commit 94e8e90

Please sign in to comment.