App-Pod

 view release on metacpan or  search on metacpan

t/01-usage-simple.t  view on Meta::CPAN

            '',
            'Use --all (or -a) to see all methods.',
        ],
    },
    {
        name            => "Module - ojo, no_color",
        input           => [qw( ojo --no_color )],
        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 ...',
            ' r - Dump a Perl data structure with "dumper" in Mo ...',
            ' t - Perform PATCH request with "patch" in Mojo::Us ...',
            ' u - Perform PUT request with "put" in Mojo::UserAg ...',
            ' x - Turn HTML/XML input into Mojo::DOM object.',
            '',
            'Use --all (or -a) to see all methods.',
        ],
    },
    {
        name            => "Module - Mojo2::UserAgent",
        input           => [qw( Mojo2::UserAgent )],
        expected_output => [
            '',
            'Package: Mojo2::UserAgent',
            'Path:    <PATH>',
            '',
            'Mojo::UserAgent - Non-blocking I/O HTTP and WebSock ...',
            '',
            'Inheritance (3):',
            ' Mojo2::UserAgent',
            ' Mojo::EventEmitter',
            ' Mojo::Base',
            '',
            'Events (2):',
            ' prepare - Emitted whenever a new transaction is be ...',
            ' start   - Emitted whenever a new transaction is ab ...',
            '',
            'Methods (36):',
            ' build_tx           - Generate Mojo::Transaction::H ...',
            ' build_websocket_tx - Generate Mojo::Transaction::H ...',
            ' ca                 - Path to TLS certificate autho ...',
            ' cert               - Path to TLS certificate file, ...',
            ' connect_timeout    - Maximum amount of time in sec ...',
            ' cookie_jar         - Cookie jar to use for request ...',
            ' delete             - Perform blocking DELETE reque ...',
            ' delete_p           - Same as "delete", but perform ...',
            ' get                - Perform blocking GET request  ...',
            ' get_p              - Same as "get", but performs a ...',
            ' head               - Perform blocking HEAD request ...',
            ' head_p             - Same as "head", but performs  ...',
            ' inactivity_timeout - Maximum amount of time in sec ...',
            ' insecure           - Do not require a valid TLS ce ...',
            ' ioloop             - Event loop object to use for  ...',
            ' key                - Path to TLS key file, default ...',
            ' max_connections    - Maximum number of keep-alive  ...',
            ' max_redirects      - Maximum number of redirects t ...',
            ' max_response_size  - Maximum response size in byte ...',
            ' options            - Perform blocking OPTIONS requ ...',
            ' options_p          - Same as "options", but perfor ...',
            ' patch              - Perform blocking PATCH reques ...',
            ' patch_p            - Same as "patch", but performs ...',
            ' post               - Perform blocking POST request ...',
            ' post_p             - Same as "post", but performs  ...',
            ' proxy              - Proxy manager, defaults to a  ...',
            ' put                - Perform blocking PUT request  ...',
            ' put_p              - Same as "put", but performs a ...',
            ' request_timeout    - Maximum amount of time in sec ...',
            ' server             - Application server relative U ...',
            ' socket_options     - Additional options for IO::So ...',
            ' start              - Emitted whenever a new transa ...',
            ' start_p            - Same as "start", but performs ...',
            ' transactor         - Transaction builder, defaults ...',
            ' websocket          - Open a non-blocking WebSocket ...',
            ' websocket_p        - Same as "websocket", but retu ...',
            '',
            'Use --all (or -a) to see all methods.',
        ],
    },

    # Class method.
    {
        name            => "Module - ojo x",
        input           => [qw( ojo x )],
        expected_output => [
            "",
            "Package: ojo",
            "Path:    <PATH>",
            "",
            "ojo - Fun one-liners with Mojo",
            "",
            "x:",
            "",
            "  my \$dom = x('<div>Hello!</div>');",
            "",
            "  Turn HTML/XML input into Mojo::DOM object.",
            "",
"  \$ perl -Mojo -E 'say x(f(\"test.html\")->slurp)->at(\"title\")->text'",
            "",
            "  [UnicodeTest: I ♥ Mojolicious!]",
        ]
    },

    # --query bad
    {



( run in 0.904 second using v1.01-cache-2.11-cpan-39bf76dae61 )