{"id":15994671,"url":"https://github.com/taiki-e/coverage-helper","last_synced_at":"2025-12-30T04:18:13.697Z","repository":{"id":53901770,"uuid":"497473828","full_name":"taiki-e/coverage-helper","owner":"taiki-e","description":"[DEPRECATED] Helper for https://github.com/taiki-e/cargo-llvm-cov/issues/123.","archived":true,"fork":false,"pushed_at":"2025-01-18T11:42:43.000Z","size":141,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T04:45:46.764Z","etag":null,"topics":["coverage","rust"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taiki-e.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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},"funding":{"github":"taiki-e"}},"created_at":"2022-05-29T02:44:29.000Z","updated_at":"2025-02-03T16:29:32.000Z","dependencies_parsed_at":"2023-12-03T09:27:25.945Z","dependency_job_id":"425dbbe0-09e1-43b0-b47e-7de7b78a9821","html_url":"https://github.com/taiki-e/coverage-helper","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"c7251c923d37b1d60d3f01e81deb56c44aff5f6d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcoverage-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcoverage-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcoverage-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiki-e%2Fcoverage-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taiki-e","download_url":"https://codeload.github.com/taiki-e/coverage-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841134,"owners_count":20356441,"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":["coverage","rust"],"created_at":"2024-10-08T07:09:44.680Z","updated_at":"2025-12-12T16:23:44.457Z","avatar_url":"https://github.com/taiki-e.png","language":"Shell","funding_links":["https://github.com/sponsors/taiki-e"],"categories":[],"sub_categories":[],"readme":"# coverage-helper\n\n[![crates.io](https://img.shields.io/crates/v/coverage-helper?style=flat-square\u0026logo=rust)](https://crates.io/crates/coverage-helper)\n[![docs.rs](https://img.shields.io/badge/docs.rs-coverage--helper-blue?style=flat-square\u0026logo=docs.rs)](https://docs.rs/coverage-helper)\n[![license](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue?style=flat-square)](#license)\n[![msrv](https://img.shields.io/badge/msrv-1.38-blue?style=flat-square\u0026logo=rust)](https://www.rust-lang.org)\n[![github actions](https://img.shields.io/github/actions/workflow/status/taiki-e/coverage-helper/ci.yml?branch=main\u0026style=flat-square\u0026logo=github)](https://github.com/taiki-e/coverage-helper/actions)\n![maintenance-status](https://img.shields.io/badge/maintenance-deprecated-red?style=flat-square)\n\n\u003c!-- tidy:crate-doc:start --\u003e\n\n**Note: This crate is now deprecated in favor of the pattern that is [recommended in the cargo-llvm-cov documentation](https://github.com/taiki-e/cargo-llvm-cov?tab=readme-ov-file#exclude-code-from-coverage).**\n\n\u003e If you want to ignore all `#[test]`-related code, you can use module-level `#[coverage(off)]` attribute:\n\u003e\n\u003e ```rust\n\u003e #![cfg_attr(coverage_nightly, feature(coverage_attribute))]\n\u003e\n\u003e #[cfg(test)]\n\u003e #[cfg_attr(coverage_nightly, coverage(off))]\n\u003e mod tests {\n\u003e     // ...\n\u003e }\n\u003e ```\n\u003e\n\u003e cargo-llvm-cov excludes code contained in the directory named `tests` from the report by default, so you can also use it instead of `#[coverage(off)]` attribute.\n\n---\n\nHelper for \u003chttps://github.com/taiki-e/cargo-llvm-cov/issues/123\u003e.\n\n**Note:** coverage-helper 0.2 supports `#[coverage(off)]`.\nSee coverage-helper 0.1 for versions that support `#[no_coverage]`.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dev-dependencies]\ncoverage-helper = \"0.2\"\n```\n\n## Examples\n\n```rust\nuse coverage_helper::test;\n\n#[test]\nfn my_test() {\n    // ...\n}\n```\n\nExpanded to:\n\n```rust\n#[cfg_attr(all(coverage_nightly, test), coverage(off))]\n#[::core::prelude::v1::test]\nfn my_test() {\n    // ...\n}\n```\n\n\u003c!-- tidy:crate-doc:end --\u003e\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or\n[MIT license](LICENSE-MIT) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiki-e%2Fcoverage-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaiki-e%2Fcoverage-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiki-e%2Fcoverage-helper/lists"}