File: 3_can.t

package info (click to toggle)
libexception-handler-perl 1.004-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 84 kB
  • sloc: perl: 88; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (4)
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

use strict;
use Test;

# use a BEGIN block so we print our plan before MyModule is loaded
BEGIN { plan tests => 6, todo => [] }
BEGIN { $| = 1 }

# load your module...
use lib './';
use Exception::Handler;

my($f) = Exception::Handler->new();

# check to see if non-autoloaded Exception::Handler methods are can-able ;O)
map { ok(ref(UNIVERSAL::can($f,$_)),'CODE') } qw
   (
      new
      fail
      trace

      VERSION
      DESTROY
      AUTOLOAD
   );

exit;