{
    "mode": "perldoc",
    "parameter": "Test2::Event::Ok",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AEvent%3A%3AOk/json",
    "generated": "2026-06-10T10:35:49Z",
    "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);",
    "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": []
        }
    },
    "summary": "Test2::Event::Ok - Ok event type",
    "flags": [],
    "examples": [],
    "see_also": []
}