{
    "mode": "perldoc",
    "parameter": "Test2::Event::Fail",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AEvent%3A%3AFail/json",
    "generated": "2026-06-03T02:35:36Z",
    "synopsis": "use Test2::API qw/context/;\nsub fail {\nmy ($name) = @;\nmy $ctx = context();\n$ctx->fail($name);\n$ctx->release;\n}",
    "sections": {
        "NAME": {
            "content": "Test2::Event::Fail - Event for a simple failed assertion\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is an optimal representation of a failed assertion.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Test2::API qw/context/;\n\nsub fail {\nmy ($name) = @;\nmy $ctx = context();\n$ctx->fail($name);\n$ctx->release;\n}\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::Fail - Event for a simple failed assertion",
    "flags": [],
    "examples": [],
    "see_also": []
}