Group
Extension

Matches 4

Getopt-Auto ( G/GL/GLEACH/Getopt-Auto-2.0.tar.gz, GLEACH, 2014; MetaCPAN )
Getopt-Auto/t/05-oknotreg.t ( view source; MetaCPAN )
w{ --abc -def};
stderr_isnt(
    \&Getopt::Auto::_parse_args,
    "--abc is not a registered option\n",
    '--abc correctly not reported not a registered option'
);
stderr_isnt(
    \&Getopt::Auto::_
Getopt-Auto ( G/GL/GLEACH/Getopt-Auto-2.0.tar.gz, GLEACH, 2014; MetaCPAN )
Getopt-Auto/t/01-basic.t ( view source; MetaCPAN )
led' );
isnt( $options{'x'}, 1, 'option "x" was not set' );

# The most basic situation is the one where there are no options given
@ARGV = qw( /twas/brillig/and/the/slythe/toes );
stderr_isnt(
    \&
Getopt-Auto ( G/GL/GLEACH/Getopt-Auto-2.0.tar.gz, GLEACH, 2014; MetaCPAN )
Getopt-Auto/t/01-help.t ( view source; MetaCPAN )
tderr, $help, 'Check -x not registered' );
ok( $is_foo_called == 0, 'Sub foo() was not called' );
isnt( $options{'x'}, 1, 'option "x" was not set' );

exit 0;

__END__

=pod

=head2 --foo - do a foo

Getopt-Auto ( G/GL/GLEACH/Getopt-Auto-2.0.tar.gz, GLEACH, 2014; MetaCPAN )
Getopt-Auto/t/03-options_bare.t ( view source; MetaCPAN )
 is implicitly verified in prior tests,
# but it's nice to have it.
@ARGV = qw{ abcdefg };
stdout_isnt(
    \&Getopt::Auto::_parse_args,
    "abcdefg is not a registered option\n",
    'abcdefg correc

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.