<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package Test::use::ok;
use 5.005;

our $VERSION = '1.302194';


__END__

=head1 NAME

Test::use::ok - Alternative to Test::More::use_ok

=head1 SYNOPSIS

    use ok 'Some::Module';

=head1 DESCRIPTION

According to the B&lt;Test::More&gt; documentation, it is recommended to run
C&lt;use_ok()&gt; inside a C&lt;BEGIN&gt; block, so functions are exported at
compile-time and prototypes are properly honored.

That is, instead of writing this:

    use_ok( 'Some::Module' );
    use_ok( 'Other::Module' );

One should write this:

    BEGIN { use_ok( 'Some::Module' ); }
    BEGIN { use_ok( 'Other::Module' ); }

However, people often either forget to add C&lt;BEGIN&gt;, or mistakenly group
C&lt;use_ok&gt; with other tests in a single C&lt;BEGIN&gt; block, which can create subtle
differences in execution order.

With this module, simply change all C&lt;use_ok&gt; in test scripts to C&lt;use ok&gt;,
and they will be executed at C&lt;BEGIN&gt; time.  The explicit space after C&lt;use&gt;
makes it clear that this is a single compile-time action.

=head1 SEE ALSO

L&lt;Test::More&gt;

=head1 MAINTAINER

=over 4

=item Chad Granum E&lt;lt&gt;exodist@cpan.orgE&lt;gt&gt;

=back

=encoding utf8

=head1 CC0 1.0 Universal

To the extent possible under law, å”é³³ has waived all copyright and related
or neighboring rights to L&lt;Test-use-ok&gt;.

This work is published from Taiwan.

L&lt;http://creativecommons.org/publicdomain/zero/1.0&gt;

=cut
</pre></body></html>