{"id":25687136,"url":"https://github.com/holyshared/lcov-parser","last_synced_at":"2025-08-29T21:34:57.503Z","repository":{"id":34226775,"uuid":"38092481","full_name":"holyshared/lcov-parser","owner":"holyshared","description":"LCOV report parser for Rust","archived":false,"fork":false,"pushed_at":"2018-04-10T02:23:34.000Z","size":840,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-21T03:05:58.558Z","etag":null,"topics":["lcov","merge","parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/holyshared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-26T05:27:59.000Z","updated_at":"2023-04-24T14:22:33.000Z","dependencies_parsed_at":"2022-09-14T02:30:17.655Z","dependency_job_id":null,"html_url":"https://github.com/holyshared/lcov-parser","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/holyshared/lcov-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Flcov-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Flcov-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Flcov-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Flcov-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holyshared","download_url":"https://codeload.github.com/holyshared/lcov-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Flcov-parser/sbom","scorecard":{"id":468061,"data":{"date":"2025-08-11","repo":{"name":"github.com/holyshared/lcov-parser","commit":"0bca56fd8395debbc668a98b30dccf3753d9fe4b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/22 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T13:01:56.868Z","repository_id":34226775,"created_at":"2025-08-19T13:01:56.868Z","updated_at":"2025-08-19T13:01:56.868Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272766757,"owners_count":24989407,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lcov","merge","parser","rust"],"created_at":"2025-02-24T20:08:13.099Z","updated_at":"2025-08-29T21:34:57.482Z","avatar_url":"https://github.com/holyshared.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lcov-parser\n\nLCOV report parser for Rust.\n\n[![Build Status](https://travis-ci.org/holyshared/lcov-parser.svg)](https://travis-ci.org/holyshared/lcov-parser)\n[![Build Status](https://ci.appveyor.com/api/projects/status/q83stma2v57joiwy/branch/master?svg=true)](https://ci.appveyor.com/project/holyshared/lcov-parser/branch/master)\n[![crates.io version](https://img.shields.io/crates/v/lcov-parser.svg)](https://crates.io/crates/lcov-parser)\n[![License](https://img.shields.io/crates/l/lcov-parser.svg)](https://github.com/holyshared/lcov-parser/blob/master/LICENSE)\n\n## Basic usage\n\nCreate a LCOVParser object, and then parse the data.\n\n```rust\nextern crate lcov_parser;\n\nuse lcov_parser:: { LCOVParser, LCOVRecord };\n\nfn main() {\n    let content = concat!(\n        \"TN:test_name\\n\",\n        \"SF:/path/to/source.rs\\n\",\n        \"DA:1,2\\n\",\n        \"DA:2,1\\n\",\n        \"DA:3,5\\n\",\n        \"end_of_record\\n\"\n    );\n    let mut parser = LCOVParser::new(content.as_bytes());\n\n    loop {\n        match parser.next().expect(\"parse the report\") {\n            None =\u003e { break; },\n            Some(record) =\u003e match record {\n                LCOVRecord::TestName(name) =\u003e println!(\"Test: {}\", name.unwrap()),\n                LCOVRecord::SourceFile(file_name) =\u003e println!(\"File: {}\", file_name),\n                LCOVRecord::Data(data) =\u003e println!(\"Line: {}, Executed: {}\", data.line, data.count),\n                LCOVRecord::EndOfRecord =\u003e println!(\"Finish\"),\n                _ =\u003e { continue; }\n            }\n        }\n    }\n}\n```\n\n## Parsing the file\n\nIt can also be used to parse the report file.\n\n```rust\nlet mut parser = LCOVParser::from_file(\"../../../fixture/report.lcov\").unwrap();\n\nloop {\n    match parser.next().expect(\"parse the report\") {\n        None =\u003e { break; },\n        Some(record) =\u003e match record {\n            LCOVRecord::SourceFile(file_name) =\u003e println!(\"File: {}\", file_name),\n            LCOVRecord::EndOfRecord =\u003e println!(\"Finish\"),\n            _ =\u003e { continue; }\n        }\n    }\n}\n```\n\n## Parsing all\n\nYou can parse all using the parse method.\n\n```rust\nlet records = {\n    let mut parser = LCOVParser::from_file(\"../../../fixture/report.lcov\").unwrap();\n    parser.parse().expect(\"parse the report\")\n};\n\nfor record in records.iter() {\n    match record {\n        \u0026LCOVRecord::SourceFile(ref file_name) =\u003e println!(\"File: {}\", file_name),\n        \u0026LCOVRecord::EndOfRecord =\u003e println!(\"Finish\"),\n        _ =\u003e { continue; }\n    }\n}\n```\n\n## Merge reports\n\nYou use merge_files to merge reports.  \nYou can save the merged report by specifying the file name.\n\n```rust\nextern crate lcov_parser;\n\nuse lcov_parser:: { merge_files };\n\nfn main() {\n    let trace_files = [\n        \"../../../tests/fixtures/fixture1.info\",\n        \"../../../tests/fixtures/fixture2.info\"\n    ];\n    let _ = match merge_files(\u0026trace_files) {\n        Ok(report) =\u003e report.save_as(\"/tmp/merged_report.info\"),\n        Err(err) =\u003e panic!(err)\n    };\n}\n```\n\n## License\n\nLicensed under either of\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Flcov-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholyshared%2Flcov-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Flcov-parser/lists"}