[1m(name)[0m()
Usage
[1m(usage)[0m
Parameters
(none)[1m(parameters arenot)[0m =over 4[1m(parameters are \\n)[0m =item [1m(parameters each %s\\n\\nTBD\\n)[0m =back[1m(parameters are)[0m
Returns
(none)[1m(returns arenot)[0m =over 4[1m(returns are \\n)[0m =item [1m(returns each %s\\n\\nTBD\\n)[0m =back[1m(returns are)[0m
EOD
# -------------------------------------- $name = 'foo'; $sub = Sub::Starter->new(); $sub->parse_usage( 'foo' ); $test = $sub->fill_out( \@template ); $expected = '=head2 foo()
Usage
foo();
Parameters
(none)
Returns
(none) '; is_deeply( $test, $expected, $name );
# -------------------------------------- $name = 'trim'; $sub = Sub::Starter->new(); $sub->parse_usage( '$text | @text = trim( @text );' ); $test = $sub->fill_out( \@template ); $expected = '=head2 trim()
Usage
$text | @text = trim( @text );
Parameters
Returns
# -------------------------------------- $name = 'get_options'; $sub = Sub::Starter->new(); $sub->parse_usage( '\%options = $object->get_options( ; @option_names );' ); $test = $sub->fill_out( \@template ); $expected = '=head2 get_options()
Usage
\\%options = $object->get_options( ; @option_names );
Parameters
Returns
__END__
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 87:
=back doesn't take any parameters, but you said =back '; is_deeply( $test, $expected, $name );
- Around line 120:
=back doesn't take any parameters, but you said =back '; is_deeply( $test, $expected, $name );