App-Pod
view release on metacpan or search on metacpan
t/01-usage-simple.t view on Meta::CPAN
qw{
BEGIN
DEBUG
DESTROY
ISA
VERSION
__ANON__
_cleanup
_connect
_connect_proxy
_connection
_dequeue
_error
_finish
_process
_read
_redirect
_remove
_reuse
_start
_url
_write
build_tx
build_websocket_tx
ca
cert
connect_timeout
cookie_jar
delete
delete_p
get
get_p
has
head
head_p
import
inactivity_timeout
insecure
ioloop
key
max_connections
max_redirects
max_response_size
monkey_patch
options
options_p
patch
patch_p
post
post_p
prepare
proxy
put
put_p
request_timeout
server
socket_options
start
start
start_p
term_escape
transactor
weaken
websocket
websocket_p
}
],
},
{
name => "class_options - Mojo2::UserAgent2",
input => [qw( Mojo2::UserAgent2 --class_options )],
expected_output => [ "", "Class not found: Mojo2::UserAgent2" ],
},
# --class_options --tool_options
{
name => "class_options, tool_options - No class",
input => [qw( --class_options --tool_options )],
expected_output => [
"--all", "--class_options",
"--co", "--dd",
"--doc", "--dump",
"--edit", "--flush_cache",
"--help", "--no_colors",
"--no_error", "--query",
"--to", "--tool_options",
"--version", "-a",
"-d", "-e",
"-f", "-h",
"-q", "-v",
"", "Class name not provided!"
],
},
{
name => "class_options, tool_options - No class, no_error",
input => [qw( --class_options --tool_options --no_error )],
expected_output => [
"--all", "--class_options", "--co", "--dd",
"--doc", "--dump", "--edit", "--flush_cache",
"--help", "--no_colors", "--no_error", "--query",
"--to", "--tool_options", "--version", "-a",
"-d", "-e", "-f", "-h",
"-q", "-v",
],
},
{
name => "class_options, tool_options - Mojo2::UserAgent",
input => [qw( Mojo2::UserAgent --class_options --tool_options )],
expected_output => [
"--all", "--class_options",
"--co", "--dd",
"--doc", "--dump",
"--edit", "--flush_cache",
"--help", "--no_colors",
"--no_error", "--query",
"--to", "--tool_options",
"--version", "-a",
"-d", "-e",
"-f", "-h",
"-q", "-v",
"BEGIN", "DEBUG",
"DESTROY", "ISA",
"VERSION", "__ANON__",
"_cleanup", "_connect",
"_connect_proxy", "_connection",
"_dequeue", "_error",
"_finish", "_process",
"_read", "_redirect",
"_remove", "_reuse",
"_start", "_url",
"_write", "build_tx",
"build_websocket_tx", "ca",
"cert", "connect_timeout",
"cookie_jar", "delete",
"delete_p", "get",
"get_p", "has",
"head", "head_p",
"import", "inactivity_timeout",
"insecure", "ioloop",
"key", "max_connections",
"max_redirects", "max_response_size",
"monkey_patch", "options",
"options_p", "patch",
"patch_p", "post",
"post_p", "prepare",
"proxy", "put",
"put_p", "request_timeout",
"server", "socket_options",
"start", "start",
"start_p", "term_escape",
"transactor", "weaken",
"websocket", "websocket_p"
],
},
{
name => "class_options, tool_options - Mojo2::UserAgent2",
input => [qw( Mojo2::UserAgent2 --class_options --tool_options )],
expected_output => [
"--all", "--class_options",
"--co", "--dd",
"--doc", "--dump",
"--edit", "--flush_cache",
"--help", "--no_colors",
"--no_error", "--query",
"--to", "--tool_options",
"--version", "-a",
"-d", "-e",
"-f", "-h",
"-q", "-v",
"", 'Class not found: Mojo2::UserAgent2'
],
},
{
name => "class_options, tool_options - Mojo2::UserAgent2, no_error",
input =>
[qw( Mojo2::UserAgent2 --class_options --tool_options --no_error )],
expected_output => [
"--all", "--class_options", "--co", "--dd",
"--doc", "--dump", "--edit", "--flush_cache",
"--help", "--no_colors", "--no_error", "--query",
"--to", "--tool_options", "--version", "-a",
"-d", "-e", "-f", "-h",
"-q", "-v",
],
},
# class
{
name => "Module - ojo",
input => [qw( ojo )],
expected_output => [
'',
'Package: ojo',
'Path: <PATH>',
'',
'ojo - Fun one-liners with Mojo',
'',
'Methods (16):',
' a - Create a route with "any" in Mojolicious::Lite ...',
' b - Turn string into a Mojo::ByteStream object.',
' c - Turn list into a Mojo::Collection object.',
' d - Perform DELETE request with "delete" in Mojo:: ...',
' f - Turn string into a Mojo::File object.',
' g - Perform GET request with "get" in Mojo::UserAg ...',
' h - Perform HEAD request with "head" in Mojo::User ...',
' j - Encode Perl data structure or decode JSON with ...',
' l - Turn a string into a Mojo::URL object.',
' n - Benchmark block and print the results to STDER ...',
' o - Perform OPTIONS request with "options" in Mojo ...',
' p - Perform POST request with "post" in Mojo::User ...',
( run in 2.003 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )