chrono
chrono copied to clipboard
Add more DateTime.into tests (branch 0.4.x)
More tests for combinations of DateTime::into.
Follow-up to Pull Request #271.
I am somewhat surprised to two DateTimes with different time zones compare equal
They are the same instant just in different time zones. It makes intuitive sense to me. 🤷
I think we should first start to track coverage so we can judge whether this actually improves coverage.
I think we should first start to track coverage so we can judge whether this actually improves coverage.
@jtmoon79 Do you want to rebase and see what the coverage is?
Codecov Report
Merging #1088 (546dd9d) into 0.4.x (a47e0e3) will increase coverage by
0.06%. The diff coverage is100.00%.
@@ Coverage Diff @@
## 0.4.x #1088 +/- ##
==========================================
+ Coverage 91.24% 91.31% +0.06%
==========================================
Files 38 38
Lines 17062 17094 +32
==========================================
+ Hits 15568 15609 +41
+ Misses 1494 1485 -9
| Files Changed | Coverage Δ | |
|---|---|---|
| src/datetime/tests.rs | 96.59% <100.00%> (+0.08%) |
:arrow_up: |
... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
From the Codecov report:
Total increase
+ Coverage 91.36% 91.43% +0.07%
per file increase
src/datetime/mod.rs 88.40% <100.00%> (+2.14%)
IMO it's worthwhile to add. Up to you guys.
codecov is now reporting
- Coverage 91.36% 90.42% -0.94%
src/datetime/mod.rs 77.22% <100.00%> (-9.03%)
🤨
Is there a way to kick it?
Is there a way to kick it?
Sometimes I would like to 🤣.
In this case I think it started counting some of the lines in mod tests in the total, decreasing the covered percentage.
workflow codecov failed. These are often fixed by running again. I don't have access to force a re-run of the codecov workflow.
[2023-09-25T01:25:26.367Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.6.2&token=*******&branch=Issue263_more_tests_0.4.x&build=6293693314&build_url=https%3A%2F%2Fgithub.com%2Fchronotope%2Fchrono%2Factions%2Fruns%2F6293693314&commit=546dd9d56abc73bd2b615cbc7165432707f8fb96&job=codecov&pr=1088&service=github-actions&slug=chronotope%2Fchrono&name=&tag=&flags=&parent= [2023-09-25T01:25:26.644Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) > Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')} Error: Codecov: Failed to properly upload: The process '/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov' failed with exit code 255
Triggered a re-run.
@jtmoon79 Thank you for you efforts!
Unfortunately I don't think these tests add enough value to merge 😞.