File: ok.pm

package info (click to toggle)
libobject-declare-perl 0.22-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 172 kB
  • ctags: 178
  • sloc: perl: 2,258; makefile: 15
file content (19 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#line 1
package ok;
$ok::VERSION = 0.01;

use strict;
use Test::More ();

sub import {
    shift; goto &Test::More::use_ok if @_;

    # 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__

#line 40