File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -623,13 +623,13 @@ sub is_pod_file {
623
623
shift -> name =~ / \. pod$ /i ;
624
624
}
625
625
626
- =head2 in_test_directory
626
+ =head2 is_in_test_directory
627
627
628
628
Returns true if the file is below a t directory.
629
629
630
630
=cut
631
631
632
- sub in_test_directory {
632
+ sub is_in_test_directory {
633
633
my $self = shift ;
634
634
return ( $self -> path =~ / (^|\/ )t($| \/ )/ ? 1 : 0 );
635
635
}
@@ -671,7 +671,7 @@ does not include any modules, the L</indexed> property is true.
671
671
sub set_indexed {
672
672
my ( $self , $meta ) = @_ ;
673
673
674
- if ( $self -> in_test_directory () ) {
674
+ if ( $self -> is_in_test_directory () ) {
675
675
foreach my $mod ( @{ $self -> module } ) {
676
676
$mod -> indexed(0);
677
677
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ my %stub = (
25
25
foreach my $path ( keys %paths ) {
26
26
my $file = MetaCPAN::Document::File-> new( %stub , path => $path );
27
27
my $bool = $paths {$path } ? ' is' : ' is not' ;
28
- is( $file -> in_test_directory (),
28
+ is( $file -> is_in_test_directory (),
29
29
$paths {$path }, " $path $bool in a test directory" );
30
30
}
31
31
}
You can’t perform that action at this time.
0 commit comments