Skip to content

feat: provide is_close_to_with_margin assertion for chrono-types - #101

Merged
haraldmaida merged 5 commits into
mainfrom
feat/chrono-assertions
Sep 27, 2026
Merged

haraldmaida merged 5 commits into
mainfrom
feat/chrono-assertions

Conversation

@haraldmaida

Copy link
Copy Markdown
Member

Provide the is_close_to_with_margin assertion for the temporal types of the chrono crate.

With this change asserting provides the is_close_to_with_margin assertion for the types:

  • chrono::NaiveDate
  • chrono::NaiveTime
  • chrono::NaiveDateTime
  • chrono::DateTime<Tz>

@haraldmaida haraldmaida self-assigned this Sep 27, 2026
@haraldmaida haraldmaida added the enhancement New feature or request label Sep 27, 2026
@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.35294% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.69%. Comparing base (fc6dd73) to head (2e13d55).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/chrono/mod.rs 74.82% 32 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   87.84%   86.69%   -1.16%     
==========================================
  Files          42       45       +3     
  Lines        7513     8739    +1226     
  Branches     7513     8739    +1226     
==========================================
+ Hits         6600     7576     +976     
- Misses        843     1088     +245     
- Partials       70       75       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haraldmaida
haraldmaida merged commit 70d8310 into main Sep 27, 2026
18 of 20 checks passed
@haraldmaida
haraldmaida deleted the feat/chrono-assertions branch September 27, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant