Skip to content

feat: implement more length assertions#15

Merged
haraldmaida merged 4 commits into
mainfrom
feat/more-length-assertions
Apr 19, 2025
Merged

feat: implement more length assertions#15
haraldmaida merged 4 commits into
mainfrom
feat/more-length-assertions

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

It would be convenient to have additional assertions for length of strings and collections as well as additional assertions for char count of strings.

The addtiional length assertions has_length_less_than, has_length_greater_than, has_at_most_length and has_at_least_length have been implemented, as well as

the additional char count assertions has_char_count_less_than, has_char_count_greater_than, has_at_most_char_countandhas_at_least_char_count` have been implemented.

…_greater_than`, `has_at_most_length` and `has_at_least_length`
…_than`, `has_char_count_greater_than`, `has_at_most_char_count` and `has_at_least_char_count` for `String` and `&str`
@haraldmaida haraldmaida added the enhancement New feature or request label Apr 19, 2025
@haraldmaida haraldmaida self-assigned this Apr 19, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.47%. Comparing base (35c9e87) to head (657a293).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   93.05%   93.47%   +0.41%     
==========================================
  Files          22       22              
  Lines        1871     1991     +120     
  Branches     1871     1991     +120     
==========================================
+ Hits         1741     1861     +120     
  Misses        124      124              
  Partials        6        6              

☔ 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 4549502 into main Apr 19, 2025
18 checks passed
@haraldmaida haraldmaida deleted the feat/more-length-assertions branch April 19, 2025 19:35
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