• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCHA-DAP / hdx-python-country / 17626348238
97%

Build:
DEFAULT BRANCH: main
Ran 10 Sep 2025 08:45PM UTC
Jobs 1
Files 6
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2025 08:43PM UTC coverage: 97.385% (+0.02%) from 97.364%
17626348238

push

github

web-flow
Rework country simplification (#78)

* Rework country simplification (#77)

We now use lists of words and drop terms rather than trying to do
lots of string mutations that might give us different values
that aren't in the list of terms.

* Rework to reduce iteration complexity

Single word terms can be dropped in a single pass

* Fix typo and reduce iteration further

Take the first non-dropped word rather than checking all words for
whether they need to be dropped and then taking the first from
what remains.

* Test and fix empty string and all removed cases

* Handle additional whitespace

* Simplify the logic further

We can loop over an enumerated list and break when we find a word.
Multi-part words do index-based access but it's rare enough that the
performance hit for indexing an array should be low.

* Linting

* Add more comments and optimise

Moved the term building inside the IF block because we don't need
to build the lists if we don't have any candidate words!

* Fix test failure

34 of 34 new or added lines in 1 file covered. (100.0%)

1229 of 1262 relevant lines covered (97.39%)

0.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 tests - 17626348238.1 10 Sep 2025 08:45PM UTC 6
97.39
GitHub Action Run
Source Files on build 17626348238
  • Tree
  • List 6
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17626348238
  • 7bbf3101 on github
  • Prev Build on main (#16181906954)
  • Next Build on main (#17900488228)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc