{
    "content": [
        {
            "type": "text",
            "text": "# Test2::Tools::Tiny (perldoc)\n\n**Summary:** Test2::Tools::Tiny - Tiny set of tools for unfortunate souls who cannot use Test2::Suite.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (7 lines)\n- **EXPORTS** (1 lines) — 15 subsections\n  - ok (1 lines)\n  - ok (6 lines)\n  - isnt (1 lines)\n  - isnt (2 lines)\n  - like (1 lines)\n  - like (2 lines)\n  - unlike (1 lines)\n  - unlike (2 lines)\n  - is_deeply (1 lines)\n  - is_deeply (3 lines)\n  - diag (2 lines)\n  - note (2 lines)\n  - skip_all (5 lines)\n  - plan (2 lines)\n  - done_testing (21 lines)\n- **SOURCE** (2 lines)\n- **MAINTAINERS** (2 lines)\n- **AUTHORS** (2 lines)\n- **COPYRIGHT** (7 lines)\n\n## Full Content\n\n### NAME\n\nTest2::Tools::Tiny - Tiny set of tools for unfortunate souls who cannot use Test2::Suite.\n\n### DESCRIPTION\n\nYou 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\n### EXPORTS\n\n#### ok\n\n#### ok\n\nRun a simple assertion.\n\nis($got, $want, $name)\nis($got, $want, $name, @diag)\nAssert that 2 strings are the same.\n\n#### isnt\n\n#### isnt\n\nAssert that 2 strings are not the same.\n\n#### like\n\n#### like\n\nCheck that the input string matches the regex.\n\n#### unlike\n\n#### unlike\n\nCheck that the input string does not match the regex.\n\n#### is_deeply\n\n#### is_deeply\n\nCheck 2 data structures. Please note that this is a *DUMB* implementation that compares the\noutput of Data::Dumper against both structures.\n\n#### diag\n\nIssue a diagnostics message to STDERR.\n\n#### note\n\nIssue a diagnostics message to STDOUT.\n\n#### skip_all\n\nSkip all tests.\n\ntodo $reason => sub { ... }\nRun a block in TODO mode.\n\n#### plan\n\nSet the plan.\n\n#### done_testing\n\nSet 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\n### SOURCE\n\nThe source code repository for Test2 can be found at http://github.com/Test-More/test-more/.\n\n### MAINTAINERS\n\nChad Granum <exodist@cpan.org>\n\n### AUTHORS\n\nChad Granum <exodist@cpan.org>\n\n### COPYRIGHT\n\nCopyright 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\n"
        }
    ],
    "structuredContent": {
        "command": "Test2::Tools::Tiny",
        "section": "",
        "mode": "perldoc",
        "summary": "Test2::Tools::Tiny - Tiny set of tools for unfortunate souls who cannot use Test2::Suite.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "EXPORTS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "ok",
                        "lines": 1
                    },
                    {
                        "name": "ok",
                        "lines": 6
                    },
                    {
                        "name": "isnt",
                        "lines": 1
                    },
                    {
                        "name": "isnt",
                        "lines": 2
                    },
                    {
                        "name": "like",
                        "lines": 1
                    },
                    {
                        "name": "like",
                        "lines": 2
                    },
                    {
                        "name": "unlike",
                        "lines": 1
                    },
                    {
                        "name": "unlike",
                        "lines": 2
                    },
                    {
                        "name": "is_deeply",
                        "lines": 1
                    },
                    {
                        "name": "is_deeply",
                        "lines": 3
                    },
                    {
                        "name": "diag",
                        "lines": 2
                    },
                    {
                        "name": "note",
                        "lines": 2
                    },
                    {
                        "name": "skip_all",
                        "lines": 5
                    },
                    {
                        "name": "plan",
                        "lines": 2
                    },
                    {
                        "name": "done_testing",
                        "lines": 21
                    }
                ]
            },
            {
                "name": "SOURCE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MAINTAINERS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}