{
    "mode": "perldoc",
    "parameter": "TAP::Parser::Result::Plan",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AParser%3A%3AResult%3A%3APlan/json",
    "generated": "2026-06-15T18:03:57Z",
    "sections": {
        "NAME": {
            "content": "TAP::Parser::Result::Plan - Plan result token.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a subclass of TAP::Parser::Result. A token of this class will be returned if a plan line\nis encountered.\n\n1..1\nok 1 - woo hooo!\n\n1..1 is the plan. Gotta have a plan.\n",
            "subsections": []
        },
        "OVERRIDDEN METHODS": {
            "content": "Mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep me awake\nat night.\n\n*   \"asstring\"\n\n*   \"raw\"\n",
            "subsections": [
                {
                    "name": "Instance Methods",
                    "content": "\"plan\"\nif ( $result->isplan ) {\nprint $result->plan;\n}\n\nThis is merely a synonym for \"asstring\".\n\n\"testsplanned\"\nmy $planned = $result->testsplanned;\n\nReturns the number of tests planned. For example, a plan of 1..17 will cause this method to\nreturn '17'.\n\n\"directive\"\nmy $directive = $plan->directive;\n\nIf a SKIP directive is included with the plan, this method will return it.\n\n1..0 # SKIP: why bother?\n\n\"hasskip\"\nif ( $result->hasskip ) { ... }\n\nReturns a boolean value indicating whether or not this test has a SKIP directive.\n\n\"explanation\"\nmy $explanation = $plan->explanation;\n\nIf a SKIP directive was included with the plan, this method will return the explanation, if any.\n\n\"todolist\"\nmy $todo = $result->todolist;\nfor ( @$todo ) {\n...\n}\n"
                }
            ]
        }
    },
    "summary": "TAP::Parser::Result::Plan - Plan result token.",
    "flags": [],
    "examples": [],
    "see_also": []
}