Skip to content

Commit

Permalink
Test coverage: fixed the coverage issue in ease of reading check to g…
Browse files Browse the repository at this point in the history
…et coverage back to 100
  • Loading branch information
neomatrix369 committed Mar 13, 2023
1 parent e8b6aba commit 8963949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nlp_profiler/high_level_features/ease_of_reading_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def ease_of_reading(score: int) -> str:
return NOT_APPLICABLE

score = float(score)
for each_slab in ease_of_reading_to_words_mapping:
# pragma: no cover => early termination leads to loss of test coverage info
# early termination leads to loss of test coverage info hence use of pragma: no cover
for each_slab in ease_of_reading_to_words_mapping: # pragma: no cover
if ((score <= 0) and (each_slab[1] == 0)) or ((score >= 100) and (each_slab[2] == 100)):
return each_slab[0]
elif (score >= each_slab[1]) and (score <= each_slab[2]):
Expand Down

0 comments on commit 8963949

Please sign in to comment.