File: can.t

package info (click to toggle)
libclass-std-perl 0.013-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 280 kB
  • sloc: perl: 872; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Test::More 'no_plan';

use Class::Std;

use strict;
use warnings;

my @warnings;
local $SIG{__WARN__} = sub { push @warnings, @_; warn @_; };


UNIVERSAL::can(undef, 'any');
ok(! @warnings, 'overwritten UNIVERSAL::can throws no warnings');