{
    "content": [
        {
            "type": "text",
            "text": "# Test::Requires (perldoc)\n\n## NAME\n\nTest::Requires - Checks to see if the module can be loaded\n\n## SYNOPSIS\n\n# in your Makefile.PL\nuse inc::Module::Install;\ntestrequires 'Test::Requires';\n# in your test\nuse Test::More tests => 10;\nuse Test::Requires {\n'HTTP::MobileAttribute' => 0.01, # skip all if HTTP::MobileAttribute doesn't installed\n};\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n# or\nuse Test::More tests => 10;\nuse Test::Requires qw(\nHTTP::MobileAttribute\n);\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n# or\nuse Test::More tests => 10;\nuse Test::Requires;\ntestrequires 'Some::Optional::Test::Required::Modules';\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n\n## DESCRIPTION\n\nTest::Requires checks to see if the module can be loaded.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **THANKS TO**\n- **ENVIRONMENT**\n- **SEE ALSO**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Test::Requires",
        "section": "",
        "mode": "perldoc",
        "summary": "Test::Requires - Checks to see if the module can be loaded",
        "synopsis": "# in your Makefile.PL\nuse inc::Module::Install;\ntestrequires 'Test::Requires';\n# in your test\nuse Test::More tests => 10;\nuse Test::Requires {\n'HTTP::MobileAttribute' => 0.01, # skip all if HTTP::MobileAttribute doesn't installed\n};\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n# or\nuse Test::More tests => 10;\nuse Test::Requires qw(\nHTTP::MobileAttribute\n);\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n# or\nuse Test::More tests => 10;\nuse Test::Requires;\ntestrequires 'Some::Optional::Test::Required::Modules';\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "THANKS TO",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Test::Requires - Checks to see if the module can be loaded\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# in your Makefile.PL\nuse inc::Module::Install;\ntestrequires 'Test::Requires';\n\n# in your test\nuse Test::More tests => 10;\nuse Test::Requires {\n'HTTP::MobileAttribute' => 0.01, # skip all if HTTP::MobileAttribute doesn't installed\n};\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n\n# or\nuse Test::More tests => 10;\nuse Test::Requires qw(\nHTTP::MobileAttribute\n);\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n\n# or\nuse Test::More tests => 10;\nuse Test::Requires;\ntestrequires 'Some::Optional::Test::Required::Modules';\nisaok HTTP::MobileAttribute->new, 'HTTP::MobileAttribute::NonMobile';\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Test::Requires checks to see if the module can be loaded.\n\nIf this fails rather than failing tests this skips all tests.\n\nTest::Requires can also be used to require a minimum version of Perl:\n\nuse Test::Requires \"5.010\";  # quoting is necessary!!\n\n# or\nuse Test::Requires \"v5.10\";\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Tokuhiro Matsuno <tokuhirom @*(#RJKLFHFSDLJF gmail.com>\n",
                "subsections": []
            },
            "THANKS TO": {
                "content": "kazuho++ # some tricky stuff\nmiyagawa++ # original code from t/TestPlagger.pm\ntomyhero++ # reported issue related older test::builder\ntobyink++ # documented that Test::Requires \"5.010\" works\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "If the \"RELEASETESTING\" environment variable is true, then instead of skipping tests,\nTest::Requires bails out.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "\"TestPlagger.pm\" in t\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}