1 package Pod::Coverage::ExportOnly;
4 use base qw(Pod::Coverage);
10 # lifted from UNIVERSAL::exports
12 my %exports = map { $_ => 1 } @{$package.'::EXPORT'},
13 @{$package.'::EXPORT_OK'};
23 Pod::Coverage::ExportOnly - subclass of Pod::Coverage than only examines exported functions
27 # all in one invocation
28 use Pod::Coverage::ExportOnly package => 'Fishy';
31 use Pod::Coverage::ExportOnly;
32 my $pc = new Pod::Coverage::ExportOnly package => 'Pod::Coverage';
33 print "We rock!" if $pc->coverage == 1;
37 This module extends Pod::Coverage to only check things explicitly set
38 up for export by the Exporter or UNIVERSAL::exports modules. If you
39 want full documentation we suggest you check the L<Pod::Coverage>
44 L<Pod::Coverage>, L<Exporter>, L<UNIVERSAL::exports>
48 Copyright (c) 2001 Richard Clamp, Micheal Stevens. All rights
49 reserved. This program is free software; you can redistribute it
50 and/or modify it under the same terms as Perl itself.