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

map-services / next-departures-api / 25998967059
29%

Build:
DEFAULT BRANCH: main
Ran 17 May 2026 06:23PM UTC
Jobs 1
Files 20
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

17 May 2026 06:21PM UTC coverage: 29.22%. Remained the same
25998967059

push

github

web-flow
fix: Conduct a code review to test automated PR generation (#21)

_This is an automated PR generated by Gemini in response to issue #20._

## Summary

I have completed a brief code review of the `next-departures-api`
repository. I identified and addressed the following three issues:

1. **Inconsistent Logging in `ImportCSV`**: Updated the error logging in
`internal/repository.go` to include the line number when parsing CSV
records, improving debuggability.
2. **Missing Error Handling for `rows.Close()`**: In the `Search`
method, I replaced the silent disregard of `rows.Close()` errors with a
proper log statement to ensure resource cleanup failures are monitored.
3. **Efficiency Concern**: I investigated the row-by-row insertion in
`ImportCSV`. While this is a performance bottleneck, refactoring it for
bulk insertion would require significant changes to the current
data-tuple mapping approach. I have flagged this as a structural
improvement for a future task.

All changes were verified by running the project's test suite, which
completed successfully.

> [!CAUTION]
> Please review the generated code carefully before merging!

Closes #20

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: gemini-pr-agent[bot] <285455830+gemini-pr-agent[bot]@users.noreply.github.com>
Co-authored-by: Richard Hull <rm_hull@yahoo.co.uk>

2 of 20 new or added lines in 5 files covered. (10.0%)

1 existing line in 1 file now uncovered.

341 of 1167 relevant lines covered (29.22%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
15.2
0.0% internal/repository.go
2
0.0
0.0% internal/routes/search.go
1
0.0
0.0% cmd/import.go
1
0.0
0.0% internal/cron.go
1
0.0
0.0% main.go

Coverage Regressions

Lines Coverage ∆ File
1
15.2
0.0% internal/repository.go
Jobs
ID Job ID Ran Files Coverage
1 25998967059.1 17 May 2026 06:23PM UTC 20
29.22
GitHub Action Run
Source Files on build 25998967059
  • Tree
  • List 20
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bd8c12a9 on github
  • Prev Build on main (#25998922949)
  • Next Build on main (#26001855790)
  • 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