use lib 't';
use File::Temp qw/tempfile/;
-use Test::More tests => 19;
+use Test::More tests => 20;
our ($section_1, $section_2, $section_3, $section_4, %options);
section_2 => \$section_2,
section_3 => sub { tr/[a-z]/[A-Z]/; $section_3 = $_ },
section_4 => sub { eval },
+ 'GUI parameters' => sub {
+ Pod::Constants::delete_hook('*item')
+ },
'command line parameters' => sub {
Pod::Constants::add_hook('*item' => \&handle_item)
});
@TestManPage::myarray = ();
is $options{foo}->{options}->[0], "-f", "Pod::Constants::add_hook";
+ok !exists $options{gtk}, 'Pod::Constants::remove_hook';
=head2 section_1
This also does something pretty cool.
+=head1 GUI parameters
+
+the following GUI parameters are supported
+
+=item -g, --gtk
+
+Use a GTK+ look-and-feel
+
+=item -q, --qt
+
+Use a Qt look-and-feel
+
=cut