{
    "content": [
        {
            "type": "text",
            "text": "# Test2::Event::Ok (perldoc)\n\n## NAME\n\nTest2::Event::Ok - Ok event type\n\n## SYNOPSIS\n\nuse Test2::API qw/context/;\nuse Test2::Event::Ok;\nmy $ctx = context();\nmy $event = $ctx->ok($bool, $name, \\@diag);\nor:\nmy $ctx   = context();\nmy $event = $ctx->sendevent(\n'Ok',\npass => $bool,\nname => $name,\n);\n\n## DESCRIPTION\n\nOk events are generated whenever you run a test that produces a result. Examples are \"ok()\", and\n\"is()\".\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **ACCESSORS**\n- **SOURCE**\n- **MAINTAINERS**\n- **AUTHORS**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Test2::Event::Ok",
        "section": "",
        "mode": "perldoc",
        "summary": "Test2::Event::Ok - Ok event type",
        "synopsis": "use Test2::API qw/context/;\nuse Test2::Event::Ok;\nmy $ctx = context();\nmy $event = $ctx->ok($bool, $name, \\@diag);\nor:\nmy $ctx   = context();\nmy $event = $ctx->sendevent(\n'Ok',\npass => $bool,\nname => $name,\n);",
        "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": 15,
                "subsections": []
            },
            {
                "name": "ACCESSORS",
                "lines": 11,
                "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::Event::Ok - Ok event type\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Ok events are generated whenever you run a test that produces a result. Examples are \"ok()\", and\n\"is()\".\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Test2::API qw/context/;\nuse Test2::Event::Ok;\n\nmy $ctx = context();\nmy $event = $ctx->ok($bool, $name, \\@diag);\n\nor:\n\nmy $ctx   = context();\nmy $event = $ctx->sendevent(\n'Ok',\npass => $bool,\nname => $name,\n);\n",
                "subsections": []
            },
            "ACCESSORS": {
                "content": "$rb = $e->pass\nThe original true/false value of whatever was passed into the event (but reduced down to 1\nor 0).\n\n$name = $e->name\nName of the test.\n\n$b = $e->effectivepass\nThis is the true/false value of the test after TODO and similar modifiers are taken into\naccount.\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": []
            }
        }
    }
}