{
    "content": [
        {
            "type": "text",
            "text": "# Test2::EventFacet::Info::Table (perldoc)\n\n## NAME\n\nTest2::EventFacet::Info::Table - Intermediary representation of a table.\n\n## SYNOPSIS\n\nuse Test2::EventFacet::Info::Table;\nuse Test2::API qw/context/;\nsub mytool {\nmy $ctx = context();\n...\n$ctx->fail(\n$name,\n\"failure diag message\",\nTest2::EventFacet::Info::Table->new(\n# Required\nrows => [['a', 'b'], ['c', 'd'], ...],\n# Strongly Recommended\nasstring => \"... string to print when table cannot be rendered ...\",\n# Optional\nheader => ['col1', 'col2'],\ncollapse => $bool,\nnocollapse => ['col1', ...],\n),\n);\n...\n$ctx->release;\n}\nmytool();\n\n## DESCRIPTION\n\nIntermediary representation of a table for use in specialized Test::API::Context methods which\ngenerate Test2::EventFacet::Info facets.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **ATTRIBUTES**\n- **SOURCE**\n- **MAINTAINERS**\n- **AUTHORS**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Test2::EventFacet::Info::Table",
        "section": "",
        "mode": "perldoc",
        "summary": "Test2::EventFacet::Info::Table - Intermediary representation of a table.",
        "synopsis": "use Test2::EventFacet::Info::Table;\nuse Test2::API qw/context/;\nsub mytool {\nmy $ctx = context();\n...\n$ctx->fail(\n$name,\n\"failure diag message\",\nTest2::EventFacet::Info::Table->new(\n# Required\nrows => [['a', 'b'], ['c', 'd'], ...],\n# Strongly Recommended\nasstring => \"... string to print when table cannot be rendered ...\",\n# Optional\nheader => ['col1', 'col2'],\ncollapse => $bool,\nnocollapse => ['col1', ...],\n),\n);\n...\n$ctx->release;\n}\nmytool();",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "ATTRIBUTES",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SOURCE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MAINTAINERS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Test2::EventFacet::Info::Table - Intermediary representation of a table.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Intermediary representation of a table for use in specialized Test::API::Context methods which\ngenerate Test2::EventFacet::Info facets.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Test2::EventFacet::Info::Table;\nuse Test2::API qw/context/;\n\nsub mytool {\nmy $ctx = context();\n\n...\n\n$ctx->fail(\n$name,\n\"failure diag message\",\nTest2::EventFacet::Info::Table->new(\n# Required\nrows => [['a', 'b'], ['c', 'd'], ...],\n\n# Strongly Recommended\nasstring => \"... string to print when table cannot be rendered ...\",\n\n# Optional\nheader => ['col1', 'col2'],\ncollapse => $bool,\nnocollapse => ['col1', ...],\n),\n);\n\n...\n\n$ctx->release;\n}\n\nmytool();\n",
                "subsections": []
            },
            "ATTRIBUTES": {
                "content": "$headeraref = $t->header()\n$rowsaref = $t->rows()\n$bool = $t->collapse()\n$aref = $t->nocollapse()\nThe above are all directly tied to the table hashref structure described in\nTest2::EventFacet::Info.\n\n$str = $t->asstring()\nThis returns the string form of the table if it was set, otherwise it returns the string\n\"<TABLE NOT DISPLAYED>\".\n\n$href = $t->ashash()\nThis returns the data structure used for tables by Test2::EventFacet::Info.\n\n%args = $t->infoargs()\nThis returns the arguments that should be used to construct the proper\nTest2::EventFacet::Info structure.\n\nreturn (table => $t->ashash(), details => $t->asstring());\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>\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": []
            }
        }
    }
}