{
    "content": [
        {
            "type": "text",
            "text": "# Test2::Formatter::TAP (perldoc)\n\n## NAME\n\nTest2::Formatter::TAP - Standard TAP formatter\n\n## SYNOPSIS\n\nuse 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## DESCRIPTION\n\nThis is what takes events and turns them into TAP.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **METHODS**\n- **SOURCE**\n- **MAINTAINERS**\n- **AUTHORS**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\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": []
            }
        }
    }
}