{
    "mode": "perldoc",
    "parameter": "TAP::Parser::SourceHandler::RawTAP",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AParser%3A%3ASourceHandler%3A%3ARawTAP/json",
    "generated": "2026-06-12T02:16:56Z",
    "synopsis": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::RawTAP;\nmy $source = TAP::Parser::Source->new->raw( \\\"1..1\\nok 1\\n\" );\n$source->assemblemeta;\nmy $class = 'TAP::Parser::SourceHandler::RawTAP';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );",
    "sections": {
        "NAME": {
            "content": "TAP::Parser::SourceHandler::RawTAP - Stream output from raw TAP in a scalar/array ref.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use TAP::Parser::Source;\nuse TAP::Parser::SourceHandler::RawTAP;\n\nmy $source = TAP::Parser::Source->new->raw( \\\"1..1\\nok 1\\n\" );\n$source->assemblemeta;\n\nmy $class = 'TAP::Parser::SourceHandler::RawTAP';\nmy $vote  = $class->canhandle( $source );\nmy $iter  = $class->makeiterator( $source );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a *raw TAP output* TAP::Parser::SourceHandler - it has 2 jobs:\n\n1. Figure out if the TAP::Parser::Source it's given is raw TAP output (\"canhandle\").\n\n2. Creates an iterator for raw TAP output (\"makeiterator\").\n\nUnless you're writing a plugin or subclassing TAP::Parser, you probably won't need to use this\nmodule directly.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "Class Methods",
                    "content": "\"canhandle\"\nmy $vote = $class->canhandle( $source );\n\nOnly votes if $source is an array, or a scalar with newlines. Casts the following votes:\n\n0.9  if it's a scalar with '..' in it\n0.7  if it's a scalar with 'ok' in it\n0.3  if it's just a scalar with newlines\n0.5  if it's an array\n\n\"makeiterator\"\nmy $iterator = $class->makeiterator( $source );\n\nReturns a new TAP::Parser::Iterator::Array for the source. \"$source->raw\" must be an array ref,\nor a scalar ref.\n\n\"croak\"s on error.\n"
                }
            ]
        },
        "SUBCLASSING": {
            "content": "Please see \"SUBCLASSING\" in TAP::Parser for a subclassing overview.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "TAP::Object, TAP::Parser, TAP::Parser::IteratorFactory, TAP::Parser::SourceHandler,\nTAP::Parser::SourceHandler::Executable, TAP::Parser::SourceHandler::Perl,\nTAP::Parser::SourceHandler::File, TAP::Parser::SourceHandler::Handle\n",
            "subsections": []
        }
    },
    "summary": "TAP::Parser::SourceHandler::RawTAP - Stream output from raw TAP in a scalar/array ref.",
    "flags": [],
    "examples": [],
    "see_also": []
}