{"id":16304838,"url":"https://github.com/moznion/test-usedmodules","last_synced_at":"2025-08-22T22:34:45.352Z","repository":{"id":9283677,"uuid":"11116861","full_name":"moznion/Test-UsedModules","owner":"moznion","description":"Detects needless modules which are being used in your module","archived":false,"fork":false,"pushed_at":"2015-07-14T15:39:36.000Z","size":284,"stargazers_count":4,"open_issues_count":4,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-31T07:41:23.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-02T05:25:23.000Z","updated_at":"2016-06-09T08:07:55.000Z","dependencies_parsed_at":"2022-09-22T08:31:54.329Z","dependency_job_id":null,"html_url":"https://github.com/moznion/Test-UsedModules","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FTest-UsedModules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FTest-UsedModules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FTest-UsedModules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FTest-UsedModules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/Test-UsedModules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238155449,"owners_count":19425716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:04:57.164Z","updated_at":"2025-02-10T17:31:12.618Z","avatar_url":"https://github.com/moznion.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nTest::UsedModules - Detects needless modules which are being used in your module\n\n\n\n# VERSION\n\nThis document describes Test::UsedModules version 0.03\n\n\n\n# SYNOPSIS\n\n    # check all of modules that are listed in MANIFEST\n    use Test::More;\n    use Test::UsedModules;\n    all_used_modules_ok();\n    done_testing;\n\n    # you can also specify individual file\n    use Test::More;\n    use Test::UsedModules;\n    used_modules_ok('/path/to/your/module_or_script');\n    done_testing;\n\n\n\n# DESCRIPTION\n\nTest::UsedModules finds needless modules which are being used in your module to clean up the source code.\nUsed modules (it means modules are used by 'use', 'require' or 'load (from Module::Load)' in target) will be checked by this module.\n\n\n\n# METHODS\n\n- all\\_used\\_modules\\_ok\n\n    This is a test function which finds needless used modules from modules that are listed in MANIFEST file.\n\n- used\\_modules\\_ok\n\n    This is a test function which finds needless used modules from specified source code.\n    This function requires an argument which is the path to source file.\n\n# DEPENDENCIES\n\n- PPI (version 1.215 or later)\n- Test::Builder::Module (version 0.98 or later)\n\n# KNOWN PROBLEMS\n\n- Cannot detects rightly when target module applies monkey patch.\n\n    e.g. [HTTP::Message::PSGI](http://search.cpan.org/perldoc?HTTP::Message::PSGI)\n\n    It applies monkey patch to [HTTP::Request](http://search.cpan.org/perldoc?HTTP::Request) and [HTTP::Response](http://search.cpan.org/perldoc?HTTP::Response).\n\n- Cannot detects when target module is used by \\`Module::Load::load\\` and module name is substituted in variable.\n\n    e.g.\n\n        use Module::Load;\n        my $module = 'Foo::Bar';\n        load $module;\n\n    in this case, Test::UsedModules will not notify even if Foo::Bar has never been used.\n\n# LICENSE\n\nCopyright (C) moznion.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n\n\n# AUTHOR\n\nmoznion \u003cmoznion@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Ftest-usedmodules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Ftest-usedmodules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Ftest-usedmodules/lists"}