File: caller.t

package info (click to toggle)
libgoto-file-perl 0.005-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 72; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 328 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package FooBarBaz;
use strict;
use warnings;

use Test2::V0;

is([caller(0)], [], "No caller at the flat test level");
is(__PACKAGE__, 'FooBarBaz', "inside main package");
like(__FILE__, qr/caller\.t$/, "__FILE__ is correct");
is(__LINE__, 10, "Got the correct line number");
is($@, '', '$@ set to empty string');

done_testing;