/usr/share/perl/5.24.1/ok.pm is in perl-modules-5.24 5.24.1-3+deb9u5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | package ok;
$ok::VERSION = '0.16';
use strict;
use Test::More ();
sub import {
shift;
if (@_) {
goto &Test::More::pass if $_[0] eq 'ok';
goto &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__
=pod
=encoding utf8
=head1 NAME
ok - Alternative to Test::More::use_ok
=head1 SYNOPSIS
use ok 'Some::Module';
=head1 DESCRIPTION
With this module, simply change all C<use_ok> in test scripts to C<use ok>,
and they will be executed at C<BEGIN> time.
Please see L<Test::use::ok> 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<Test-use-ok>.
This work is published from Taiwan.
L<http://creativecommons.org/publicdomain/zero/1.0>
=cut
|