{
    "mode": "perldoc",
    "parameter": "Test2::Formatter::TAP",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AFormatter%3A%3ATAP/json",
    "generated": "2026-06-03T09:52:13Z",
    "synopsis": "use Test2::Formatter::TAP;\nmy $tap = Test2::Formatter::TAP->new();\n# Switch to utf8\n$tap->encoding('utf8');\n$tap->write($event, $number); # Output an event",
    "sections": {
        "NAME": {
            "content": "Test2::Formatter::TAP - Standard TAP formatter\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is what takes events and turns them into TAP.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Test2::Formatter::TAP;\nmy $tap = Test2::Formatter::TAP->new();\n\n# Switch to utf8\n$tap->encoding('utf8');\n\n$tap->write($event, $number); # Output an event\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$bool = $tap->nonumbers\n$tap->setnonumbers($bool)\nUse to turn numbers on and off.\n\n$arrayref = $tap->handles\n$tap->sethandles(\\@handles);\nCan be used to get/set the filehandles. Indexes are identified by the \"OUTSTD\" and\n\"OUTERR\" constants.\n\n$encoding = $tap->encoding\n$tap->encoding($encoding)\nGet or set the encoding. By default no encoding is set, the original settings of STDOUT and\nSTDERR are used.\n\nThis directly modifies the stored filehandles, it does not create new ones.\n\n$tap->write($e, $num)\nWrite an event to the console.\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.\n",
            "subsections": []
        },
        "MAINTAINERS": {
            "content": "Chad Granum <exodist@cpan.org>\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Chad Granum <exodist@cpan.org>\nKent Fredric <kentnl@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2020 Chad Granum <exodist@cpan.org>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nSee http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Test2::Formatter::TAP - Standard TAP formatter",
    "flags": [],
    "examples": [],
    "see_also": []
}