Skip to content

Commit 5338816

Browse files
committed
rename in_test_directory to is_in_test_directory
1 parent fb24a66 commit 5338816

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/MetaCPAN/Document/File.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,13 +623,13 @@ sub is_pod_file {
623623
shift->name =~ /\.pod$/i;
624624
}
625625

626-
=head2 in_test_directory
626+
=head2 is_in_test_directory
627627
628628
Returns true if the file is below a t directory.
629629
630630
=cut
631631

632-
sub in_test_directory {
632+
sub is_in_test_directory {
633633
my $self = shift;
634634
return ( $self->path =~ /(^|\/)t($|\/)/ ? 1 : 0 );
635635
}
@@ -671,7 +671,7 @@ does not include any modules, the L</indexed> property is true.
671671
sub set_indexed {
672672
my ( $self, $meta ) = @_;
673673

674-
if ( $self->in_test_directory() ) {
674+
if ( $self->is_in_test_directory() ) {
675675
foreach my $mod ( @{ $self->module } ) {
676676
$mod->indexed(0);
677677
}

t/document/file.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my %stub = (
2525
foreach my $path ( keys %paths ) {
2626
my $file = MetaCPAN::Document::File->new( %stub, path => $path );
2727
my $bool = $paths{$path} ? 'is' : 'is not';
28-
is( $file->in_test_directory(),
28+
is( $file->is_in_test_directory(),
2929
$paths{$path}, "$path $bool in a test directory" );
3030
}
3131
}

0 commit comments

Comments
 (0)