File: test_classes.t

package info (click to toggle)
libtest-class-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 476 kB
  • ctags: 102
  • sloc: perl: 1,668; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/perl -T

use strict;
use warnings;
use Test::More tests => 1;
use Test::Exception;
use Test::Class;

lives_and {
    # Devel::Symdump::packages returns 0 in the list of packages on some
    # platforms. Don't yet understand why.
    no warnings;
    local *Devel::Symdump::packages = sub { 0, 'Test::Class' };
    is_deeply( [Test::Class->_test_classes], [ 'Test::Class' ] );
} '_test_classes deals with undef values';