{
    "content": [
        {
            "type": "text",
            "text": "# Test::TypeTiny (perldoc)\n\n## NAME\n\nTest::TypeTiny - useful functions for testing the efficacy of type constraints\n\n## SYNOPSIS\n\nuse strict;\nuse warnings;\nuse Test::More;\nuse Test::TypeTiny;\nuse Types::Mine qw(Integer Number);\nshouldpass(1, Integer);\nshouldpass(-1, Integer);\nshouldpass(0, Integer);\nshouldfail(2.5, Integer);\noksubtype(Number, Integer);\ndonetesting;\n\n## DESCRIPTION\n\nTest::TypeTiny provides a few handy functions for testing type constraints.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **STATUS**\n- **DESCRIPTION** (1 subsections)\n- **ENVIRONMENT**\n- **BUGS**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENCE**\n- **DISCLAIMER OF WARRANTIES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Test::TypeTiny",
        "section": "",
        "mode": "perldoc",
        "summary": "Test::TypeTiny - useful functions for testing the efficacy of type constraints",
        "synopsis": "use strict;\nuse warnings;\nuse Test::More;\nuse Test::TypeTiny;\nuse Types::Mine qw(Integer Number);\nshouldpass(1, Integer);\nshouldpass(-1, Integer);\nshouldpass(0, Integer);\nshouldfail(2.5, Integer);\noksubtype(Number, Integer);\ndonetesting;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Functions",
                        "lines": 17
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENCE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DISCLAIMER OF WARRANTIES",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Test::TypeTiny - useful functions for testing the efficacy of type constraints\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use strict;\nuse warnings;\nuse Test::More;\nuse Test::TypeTiny;\n\nuse Types::Mine qw(Integer Number);\n\nshouldpass(1, Integer);\nshouldpass(-1, Integer);\nshouldpass(0, Integer);\nshouldfail(2.5, Integer);\n\noksubtype(Number, Integer);\n\ndonetesting;\n",
                "subsections": []
            },
            "STATUS": {
                "content": "This module is covered by the Type-Tiny stability policy.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Test::TypeTiny provides a few handy functions for testing type constraints.\n",
                "subsections": [
                    {
                        "name": "Functions",
                        "content": "\"shouldpass($value, $type, $testname)\"\n\"shouldpass($value, $type)\"\nTest that passes iff $value passes \"$type->check\".\n\n\"shouldfail($value, $type, $testname)\"\n\"shouldfail($value, $type)\"\nTest that passes iff $value fails \"$type->check\".\n\n\"oksubtype($type, @subtypes)\"\nTest that passes iff all @subtypes are subtypes of $type.\n\n\"EXTENDEDTESTING\"\nExportable boolean constant.\n\n\"matchfor(@things)\"\nAssistant for matching exceptions. Not exported by default. See also Test::Fatal::matchfor.\n"
                    }
                ]
            },
            "ENVIRONMENT": {
                "content": "If the \"EXTENDEDTESTING\" environment variable is set to true, this module will promote each\n\"shouldpass\" or \"shouldfail\" test into a subtest block and test the type constraint in both an\ninlined and non-inlined manner.\n\nThis variable must be set at compile time (i.e. before this module is loaded).\n",
                "subsections": []
            },
            "BUGS": {
                "content": "Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Type::Tiny.\n\nFor an alternative to \"shouldpass\", see Test::Deep::Type which will happily accept a Type::Tiny\ntype constraint instead of a MooseX::Types one.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Toby Inkster <tobyink@cpan.org>.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENCE": {
                "content": "This software is copyright (c) 2013-2014, 2017-2021 by Toby Inkster.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
                "subsections": []
            },
            "DISCLAIMER OF WARRANTIES": {
                "content": "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nWITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.\n",
                "subsections": []
            }
        }
    }
}