<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package ok;
our $VERSION = '1.302194';

use strict;
use Test::More ();

sub import {
    shift;

    if (@_) {
        goto &amp;Test::More::pass if $_[0] eq 'ok';
        goto &amp;Test::More::use_ok;
    }

    # No argument list - croak as if we are prototyped like use_ok()
    my (undef, $file, $line) = caller();
    ($file =~ /^\(eval/) or die "Not enough arguments for 'use ok' at $file line $line\n";
}


__END__

=encoding UTF-8

=head1 NAME

ok - Alternative to Test::More::use_ok

=head1 SYNOPSIS

    use ok 'Some::Module';

=head1 DESCRIPTION

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.

Please see L&lt;Test::use::ok&gt; for the full description.

=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>