2 $ok::VERSION = '1.302022';
11 goto &Test::More::pass if $_[0] eq 'ok';
12 goto &Test::More::use_ok;
15 # No argument list - croak as if we are prototyped like use_ok()
16 my (undef, $file, $line) = caller();
17 ($file =~ /^\(eval/) or die "Not enough arguments for 'use ok' at $file line $line\n";
27 ok - Alternative to Test::More::use_ok
31 use ok 'Some::Module';
35 With this module, simply change all C<use_ok> in test scripts to C<use ok>,
36 and they will be executed at C<BEGIN> time.
38 Please see L<Test::use::ok> for the full description.
40 =head1 CC0 1.0 Universal
42 To the extent possible under law, 唐鳳 has waived all copyright and related
43 or neighboring rights to L<Test-use-ok>.
45 This work is published from Taiwan.
47 L<http://creativecommons.org/publicdomain/zero/1.0>