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

rm-hull / placenames-api / 18756189593
53%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2025 05:08PM UTC
Jobs 1
Files 4
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

23 Oct 2025 05:07PM UTC coverage: 44.615% (+31.5%) from 13.158%
18756189593

push

github

web-flow
Improve test coverage (#5)

* Improve test coverage

* Add checks on the returned errors

* Tighten up the test

* feat: Add comprehensive tests for LoadData

Adds a new test suite for the `LoadData` function in `internal/trie.go`.

The new tests cover:
- Successful data loading
- File not found errors
- Invalid gzip file format
- CSV records with incorrect number of fields
- CSV records with invalid relevancy values
- Integration test with the full dataset

The error assertions have been made more specific to ensure the correct errors are returned. The `LoadData` function was also updated to allow for more robust error handling of malformed CSV records.

* Additional tests; remove unreachable code

* Counting error

* Additional tests; dont insert duplicates

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

87 of 195 relevant lines covered (44.62%)

0.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18756189593.1 23 Oct 2025 05:08PM UTC 4
44.62
GitHub Action Run
Source Files on build 18756189593
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 87d4c056 on github
  • Prev Build on main (#18742020037)
  • Next Build on main (#18761522576)
  • Delete
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