File: can.t

package info (click to toggle)
libclass-std-perl 0.011-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 352 kB
  • ctags: 122
  • sloc: perl: 871; 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');