{
    "mode": "perldoc",
    "parameter": "Test2::Tools::Tiny",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ATools%3A%3ATiny/json",
    "generated": "2026-06-03T09:52:18Z",
    "sections": {
        "NAME": {
            "content": "Test2::Tools::Tiny - Tiny set of tools for unfortunate souls who cannot use Test2::Suite.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "You should really look at Test2::Suite. This package is some very basic essential tools\nimplemented using Test2. This exists only so that Test2 and other tools required by Test2::Suite\ncan be tested. This is the package Test2 uses to test itself.\n\nUSE Test2::Suite INSTEAD\nUse Test2::Suite if at all possible.\n",
            "subsections": []
        },
        "EXPORTS": {
            "content": "",
            "subsections": [
                {
                    "name": "ok",
                    "content": ""
                },
                {
                    "name": "ok",
                    "content": "Run a simple assertion.\n\nis($got, $want, $name)\nis($got, $want, $name, @diag)\nAssert that 2 strings are the same.\n"
                },
                {
                    "name": "isnt",
                    "content": ""
                },
                {
                    "name": "isnt",
                    "content": "Assert that 2 strings are not the same.\n"
                },
                {
                    "name": "like",
                    "content": ""
                },
                {
                    "name": "like",
                    "content": "Check that the input string matches the regex.\n"
                },
                {
                    "name": "unlike",
                    "content": ""
                },
                {
                    "name": "unlike",
                    "content": "Check that the input string does not match the regex.\n"
                },
                {
                    "name": "is_deeply",
                    "content": ""
                },
                {
                    "name": "is_deeply",
                    "content": "Check 2 data structures. Please note that this is a *DUMB* implementation that compares the\noutput of Data::Dumper against both structures.\n"
                },
                {
                    "name": "diag",
                    "content": "Issue a diagnostics message to STDERR.\n"
                },
                {
                    "name": "note",
                    "content": "Issue a diagnostics message to STDOUT.\n"
                },
                {
                    "name": "skip_all",
                    "content": "Skip all tests.\n\ntodo $reason => sub { ... }\nRun a block in TODO mode.\n"
                },
                {
                    "name": "plan",
                    "content": "Set the plan.\n"
                },
                {
                    "name": "done_testing",
                    "content": "Set the plan to the current test count.\n\n$warnings = warnings { ... }\nCapture an arrayref of warnings from the block.\n\n$exception = exception { ... }\nCapture an exception.\n\ntests $name => sub { ... }\nRun a subtest.\n\n$output = capture { ... }\nCapture STDOUT and STDERR output.\n\nResult looks like this:\n\n{\nSTDOUT => \"...\",\nSTDERR => \"...\",\n}\n"
                }
            ]
        },
        "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::Tools::Tiny - Tiny set of tools for unfortunate souls who cannot use Test2::Suite.",
    "flags": [],
    "examples": [],
    "see_also": []
}