Skip to content

feat: assert types formatted for debug and display#56

Merged
haraldmaida merged 1 commit into
mainfrom
feat/has-debug-and-display-message-assertion
Jun 25, 2025
Merged

feat: assert types formatted for debug and display#56
haraldmaida merged 1 commit into
mainfrom
feat/has-debug-and-display-message-assertion

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

For opaque types and espacially for Error types it can be handy to assert the debug or display string of a type.

Implemented the assertions has_debug_message and does_not_have_debug_message for types that implement core::fmt::Debug and the assertions has_display_message and does_not_have_display_message for types that implement core::fmt::Display.

@haraldmaida haraldmaida self-assigned this Jun 25, 2025
@haraldmaida haraldmaida added the enhancement New feature or request label Jun 25, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.91%. Comparing base (eeceab3) to head (a2a6060).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   93.84%   93.91%   +0.07%     
==========================================
  Files          32       32              
  Lines        4546     4600      +54     
  Branches     4546     4600      +54     
==========================================
+ Hits         4266     4320      +54     
  Misses        234      234              
  Partials       46       46              

☔ View full report in Codecov by Sentry.
📢 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 d0ea6fc into main Jun 25, 2025
20 checks passed
@haraldmaida haraldmaida deleted the feat/has-debug-and-display-message-assertion branch June 25, 2025 03:58
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