summaryrefslogtreecommitdiff
path: root/cpan/Pod-Perldoc/t/load.t
blob: cc0f26135e4111c024499b363579e9f031e7020f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use warnings;

use Test::More;

my @classes = ('Pod::Perldoc', map { "Pod::Perldoc::$_" } qw(
    BaseTo       ToChecker    ToNroff      ToRtf
    GetOptsOO    ToMan        ToPod        ToText       ToXml
    ToANSI       ToTerm
) );

if( eval { require Tk; require Tk::Pod; 1 } ) { push @classes, 'Pod::Perldoc::ToTk' }
else {
	diag "Skip testing Pod::Perldoc::ToTk because there's no Tk";
	}

plan tests => scalar @classes;

foreach my $class ( @classes ) {
	require_ok( $class );
	my $version = do { no strict 'refs'; ${ '$' . $class . '::VERSION' } };
	diag( "$class $version" ) if defined $version
	}