{
    "content": [
        {
            "type": "text",
            "text": "# Test2::Formatter::TAP (perldoc)\n\n**Summary:** Test2::Formatter::TAP - Standard TAP formatter\n\n**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\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (2 lines)\n- **SYNOPSIS** (8 lines)\n- **METHODS** (19 lines)\n- **SOURCE** (2 lines)\n- **MAINTAINERS** (2 lines)\n- **AUTHORS** (3 lines)\n- **COPYRIGHT** (7 lines)\n\n## Full Content\n\n### NAME\n\nTest2::Formatter::TAP - Standard TAP formatter\n\n### DESCRIPTION\n\nThis is what takes events and turns them into TAP.\n\n### SYNOPSIS\n\nuse 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\n### METHODS\n\n$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\n### SOURCE\n\nThe source code repository for Test2 can be found at http://github.com/Test-More/test-more/.\n\n### MAINTAINERS\n\nChad Granum <exodist@cpan.org>\n\n### AUTHORS\n\nChad Granum <exodist@cpan.org>\nKent Fredric <kentnl@cpan.org>\n\n### COPYRIGHT\n\nCopyright 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\n"
        }
    ],
    "structuredContent": {
        "command": "Test2::Formatter::TAP",
        "section": "",
        "mode": "perldoc",
        "summary": "Test2::Formatter::TAP - Standard TAP formatter",
        "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",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "SOURCE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MAINTAINERS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}