{"id":18657599,"url":"https://github.com/pjcj/devel--cover","last_synced_at":"2025-05-16T07:07:09.477Z","repository":{"id":866051,"uuid":"603712","full_name":"pjcj/Devel--Cover","owner":"pjcj","description":"Code coverage metrics for Perl","archived":false,"fork":false,"pushed_at":"2025-05-10T18:17:01.000Z","size":4907,"stargazers_count":94,"open_issues_count":106,"forks_count":89,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-10T19:23:55.601Z","etag":null,"topics":["code","coverage","perl","test"],"latest_commit_sha":null,"homepage":"http://www.pjcj.net/perl.html","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjcj.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":"docs/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-04-10T10:06:36.000Z","updated_at":"2025-05-10T18:17:04.000Z","dependencies_parsed_at":"2023-07-05T19:18:31.773Z","dependency_job_id":"7a809ee6-fa8b-4ac5-bd74-17d2f1dc42c8","html_url":"https://github.com/pjcj/Devel--Cover","commit_stats":{"total_commits":1908,"total_committers":75,"mean_commits":25.44,"dds":"0.10953878406708595","last_synced_commit":"7a718d76c69f7c332a13440bd9efa4abfd657832"},"previous_names":[],"tags_count":145,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjcj%2FDevel--Cover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjcj%2FDevel--Cover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjcj%2FDevel--Cover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjcj%2FDevel--Cover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjcj","download_url":"https://codeload.github.com/pjcj/Devel--Cover/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485065,"owners_count":22078767,"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":["code","coverage","perl","test"],"created_at":"2024-11-07T07:29:07.972Z","updated_at":"2025-05-16T07:07:04.460Z","avatar_url":"https://github.com/pjcj.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Devel::Cover\n\n## Code coverage metrics for Perl\n\nThis module provides code coverage metrics for Perl.  Code coverage metrics\ndescribe how thoroughly tests exercise code.  By using Devel::Cover you can\ndiscover areas of code not exercised by your tests and determine which tests to\ncreate to increase coverage.  Code coverage can be considered an indirect\nmeasure of quality.\n\nDevel::Cover is now quite stable and provides many of the features to be\nexpected in a useful coverage tool.\n\nStatement, branch, condition, subroutine, and pod coverage information is\nreported.  Statement and subroutine coverage data should be accurate.  Branch\nand condition coverage data should be mostly accurate too, although not always\nwhat one might initially expect.  Pod coverage comes from Pod::Coverage.  If\nPod::Coverage::CountParents is available it will be used instead.\n\nThe `cover` program can be used to generate coverage reports.  Devel::Cover\nships with a number of reports including various types of HTML output, textual\nreports, a report to display missing coverage in the same format as compilation\nerrors and a report to display coverage information within the Vim editor.\n\nIt is possible to add annotations to reports, for example you can add a column\nto an HTML report showing who last changed a line, as determined by git blame.\nSome annotation modules are shipped with Devel::Cover and you can easily create\nyour own.\n\nThe `gcov2perl` program can be used to convert gcov files to `Devel::Cover`\ndatabases.  This allows you to display your C or XS code coverage together with\nyour Perl coverage, or to use any of the Devel::Cover reports to display your C\ncoverage data.\n\nCode coverage data are collected by replacing perl ops with functions which\ncount how many times the ops are executed.  These data are then mapped back to\nreality using the B compiler modules.  There is also a statement profiling\nfacility which should not be relied on.  For proper profiling use\n[Devel::NYTProf](https://metacpan.org/pod/Devel::NYTProf).  Previous versions\nof Devel::Cover collected coverage data by replacing perl's runops function.\nIt is still possible to switch to that mode of operation, but this now gets\nlittle testing and will probably be removed soon.  You probably don't care\nabout any of this.\n\nThe most appropriate mailing list on which to discuss this module would be\n[perl-qa](http://lists.perl.org/list/perl-qa.html).\n\nThe Devel::Cover repository can be found on\n[github](http://github.com/pjcj/Devel--Cover).  This is also where problems\nshould be reported.\n\nTo get coverage for an uninstalled module:\n\n```sh\ncover -test\n```\n\nor\n\n```sh\ncover -delete\nHARNESS_PERL_SWITCHES=-MDevel::Cover make test\ncover\n```\n\nTo get coverage for an uninstalled module which uses Module::Build (0.26 or\nlater):\n\n```sh\n./Build testcover\n```\n\nIf the module does not use the t/\\*.t framework:\n\n```sh\nPERL5OPT=-MDevel::Cover make test\n```\n\nIf you want to get coverage for a program:\n\n```sh\nperl -MDevel::Cover yourprog args\ncover\n```\n\nTo alter default values:\n\n```sh\nperl -MDevel::Cover=-db,cover_db,-coverage,statement,time yourprog args\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjcj%2Fdevel--cover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjcj%2Fdevel--cover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjcj%2Fdevel--cover/lists"}