{"id":19005309,"url":"https://github.com/f3ath/lcov-tracefile","last_synced_at":"2025-09-15T18:47:57.930Z","repository":{"id":61975503,"uuid":"534018706","full_name":"f3ath/lcov-tracefile","owner":"f3ath","description":"A simple library to read and parse code coverage data from lcov tracefiles.","archived":false,"fork":false,"pushed_at":"2024-02-21T02:46:17.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T05:03:04.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f3ath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-09-08T02:23:06.000Z","updated_at":"2024-07-06T03:51:57.000Z","dependencies_parsed_at":"2024-11-08T18:31:51.992Z","dependency_job_id":"86f6fea7-081f-491c-a822-026a85878e9e","html_url":"https://github.com/f3ath/lcov-tracefile","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/f3ath/lcov-tracefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Flcov-tracefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Flcov-tracefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Flcov-tracefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Flcov-tracefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3ath","download_url":"https://codeload.github.com/f3ath/lcov-tracefile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Flcov-tracefile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259763076,"owners_count":22907407,"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-11-08T18:27:04.861Z","updated_at":"2025-09-15T18:47:52.847Z","avatar_url":"https://github.com/f3ath.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lcov_tracefile\n\nA simple library to read and parse code coverage data from tracefiles.\n\nExample:\n\n```dart\nimport 'dart:io';\n\nimport 'package:lcov_tracefile/lcov_tracefile.dart';\n\n/// This code reads the \"lcov.info\" and prints line coverage for each source file.\nvoid main() {\n  final scriptDir = Directory(Platform.script.path).parent.path;\n  final fileName = '$scriptDir${Platform.pathSeparator}lcov.info';\n  // Read the file from the disk.\n  final lines = File(fileName).readAsLinesSync();\n  // Build the tracefile model\n  final tracefile = readTracefile(lines);\n  for (final source in tracefile.sources) {\n    final name = source.name;\n    final linesFound = source.lines.found ?? 0;\n    final linesHit = source.lines.hit ?? 0;\n    final lineCoverage =\n        linesFound == 0 ? 0 : (100 * linesHit / linesFound).round();\n    print('File $name, line coverage $lineCoverage%');\n  }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Flcov-tracefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3ath%2Flcov-tracefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Flcov-tracefile/lists"}