Skip to content

Conversation

@stefanpenner
Copy link

@stefanpenner stefanpenner commented Jan 28, 2026

This adds support for .dat files which use the LCOV format (identical to .info files). .dat files are detected, validated, and parsed using the existing parse_lcov parser.

bazel/go stuff produces dat files, this tidies up that integration

Changes:

  • Added Dat variant to ItemFormat enum in src/defs.rs
  • Added is_dat() validation function in src/producer.rs
  • Wired .dat file handling through the producer pipeline
  • Updated consumer in src/lib.rs to handle ItemFormat::Dat
  • Added test_plain_producer_with_dat_file() test
  • Created test/simple.dat test file

@stefanpenner stefanpenner marked this pull request as draft January 28, 2026 00:24
This adds support for .dat files which use the LCOV format (identical to .info files).
.dat files are detected, validated using the existing is_info() validator, and parsed
using the existing parse_lcov parser.

Changes:
- Added Dat variant to ItemFormat enum in src/defs.rs
- Added .dat file handling in src/producer.rs (reuses is_info() validation)
- Wired .dat file handling through the producer pipeline
- Updated consumer in src/lib.rs to handle ItemFormat::Dat
- Added test_plain_producer_with_dat_file() test
- Created test/dat/simple.dat test file in subdirectory
- Updated test_dir_producer expected list to include the new .dat test file

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@stefanpenner stefanpenner marked this pull request as ready for review January 29, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant