legend-exp / LegendDataManagement.jl

LegendMetadata access in Julia
Other
1 stars 5 forks source link

Fixes in `ChannelId` parsing #50

Closed fhagemann closed 1 month ago

fhagemann commented 2 months ago

This PR addresses the changes in commit 57c3eb1b96c5034d020013bedb60b93bdff0db29.

Seems like there are two kinds of ChannelIds: one with three digits (old) and one with seven digits (new). The implementation of how to check the validity of a ChannelId seemed a bit buggy. I tried to fix it but would need some feedback from people who have worked with ChannelIds more.

My understanding:

If this is true, I updated the regular expression ch_expr. I also updated the code to add leading zeros to Integers before being checked for validity.

This might prevent the current tests from failing.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 35.85%. Comparing base (5c85deb) to head (bee60bb). Report is 15 commits behind head on dev.

Files Patch % Lines
src/filekey.jl 50.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #50 +/- ## ========================================== - Coverage 37.90% 35.85% -2.06% ========================================== Files 24 24 Lines 1385 1470 +85 ========================================== + Hits 525 527 +2 - Misses 860 943 +83 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.