parsel
parsel copied to clipboard
Add unit tests for flatten and iflatten in utils.py
- Added tests for
flattenwith nested iterables including lists, tuples, sets, and generators. - Added tests for
iflattento ensure it correctly returns an iterator over nested iterables.
@wRAR, could you please review this PR?
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 95.18%. Comparing base (fd183dd) to head (fc6ad79).
:warning: Report is 1 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #331 +/- ##
=======================================
Coverage 95.18% 95.18%
=======================================
Files 5 5
Lines 436 436
Branches 76 76
=======================================
Hits 415 415
Misses 13 13
Partials 8 8
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
It may be more simple to just add a doctest to iflatten().