parsel icon indicating copy to clipboard operation
parsel copied to clipboard

Add unit tests for flatten and iflatten in utils.py

Open IkramKhanNiazi opened this issue 2 weeks ago • 3 comments

  • Added tests for flatten with nested iterables including lists, tuples, sets, and generators.
  • Added tests for iflatten to ensure it correctly returns an iterator over nested iterables.

IkramKhanNiazi avatar Dec 10 '25 10:12 IkramKhanNiazi

@wRAR, could you please review this PR?

IkramKhanNiazi avatar Dec 10 '25 10:12 IkramKhanNiazi

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.

codecov[bot] avatar Dec 10 '25 13:12 codecov[bot]

It may be more simple to just add a doctest to iflatten().

wRAR avatar Dec 10 '25 13:12 wRAR