-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix parsing of time_strings lacking leading zeroes #1297
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1297 +/- ##
==========================================
- Coverage 86.14% 86.10% -0.04%
==========================================
Files 196 196
Lines 19813 19863 +50
Branches 2314 2314
==========================================
+ Hits 17068 17104 +36
- Misses 2181 2195 +14
Partials 564 564
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1297 +/- ##
==========================================
- Coverage 86.15% 86.12% -0.03%
==========================================
Files 199 199
Lines 20448 20521 +73
Branches 2375 2375
==========================================
+ Hits 17617 17674 +57
- Misses 2250 2266 +16
Partials 581 581
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Dismissing this review as it was lost when I rebased this change on latest. The review was addressed though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One little question about naming. Like to see those c++ tests start to fill in!
…er portion can be exactly represented in double
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks!
…undation#1297) Fixes AcademySoftwareFoundation#1293 fixes parsing of time strings without leading zeroes. enforces that a negative sign can only appear in the left most position implementation does not allocate memory or copy strings implementation does not allow exponential notation and other things that std does allow but are inappropriate for time strings compatible with strings produced by ffprobe associated tests adds C based tests corresponding to the existing Python based tests. Signed-off-by: Michele Spina <michelespina96@gmail.com>
Link the Issue(s) this Pull Request is related to.
#1293
@jchen9 Hi Julian, here's a rework of the existing routine to address the problem you found, and introduce a little more rigor to what is or is not a well-formed time string.
Fixes #1293
Summarize your change.
Describe the reason for the change.
Reference associated tests.
adds C based tests corresponding to the existing Python based tests.