{
    "mode": "perldoc",
    "parameter": "Test2::EventFacet::Info::Table",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AEventFacet%3A%3AInfo%3A%3ATable/json",
    "generated": "2026-06-09T11:54:50Z",
    "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();",
    "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": []
        }
    },
    "summary": "Test2::EventFacet::Info::Table - Intermediary representation of a table.",
    "flags": [],
    "examples": [],
    "see_also": []
}