Alien-Selenium
view release on metacpan or search on metacpan
inc/My/Module/Build.pm view on Meta::CPAN
push(@tests, $_) if $self->find_test_files_predicate();
}}, $self->find_test_files_in_directories);
return \@tests;
}
=item I<find_test_files_predicate()>
=item I<find_test_files_in_directories()>
Those two methods are used as callbacks by L</find_test_files>;
subclasses of I<My::Module::Build> may therefore find it convenient to
overload them. I<find_test_files_in_directories> should return a list
of the directories in which to search for test files.
I<find_test_files_predicate> gets passed the name of each file found
in these directories in the same way as a L<File::Find> C<wanted> sub
would (that is, using $_ and B<not> the argument list); it should
return a true value iff this file is a test file.
=cut
inc/Pod/Snippets.pm view on Meta::CPAN
}
=head2 pod_snippets_source_line_number ()
=head2 pod_snippets_source_line_number ($value)
Gets or sets the line number that the parser reached, to be used in
error messages (after offsetting it by the appropriate amount
depending on the setting of the C<-line> named option to
L</new_for_pod_snippets>). The setter form is to be called as soon as
possible by parser callbacks L</command>, L</verbatim>, L</textblock>
so as to keep in sync with the POD flow.
=cut
sub pod_snippets_source_line_number {
my ($self, @value) = @_;
$self->{pod_snippets_source_line_number} = $value[0] if @value;
return $self->{pod_snippets_source_line_number};
}
( run in 2.066 seconds using v1.01-cache-2.11-cpan-9b1e4054eb1 )