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

map-services / next-departures-api / 25998499927
29%
main: 29%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 17 May 2026 06:01PM 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:00PM UTC coverage: 29.12% (-0.1%) from 29.22%
25998499927

Pull #21

github

rm-hull
refactor: add context to repository methods

Propagated `context.Context` through the `NaptanRepository` interface
and its SQL implementations to enable proper cancellation and timeout
handling during database operations.

- Updated `sqliteRepository` methods to use context-aware SQL execution
  (`BeginTx`, `PrepareContext`, `ExecContext`, `QueryRowContext`).
- Updated all call sites (API routes, cron jobs, and CLI commands) to
  pass appropriate context.
- Improved transaction rollback logic in `ImportCSV` for better
  consistency.

```mermaid
sequenceDiagram
    participant User
    participant Route
    participant Repo
    participant DB

    User->>Route: Search Request
    Route->>Repo: Search(ctx, bbox)
    Repo->>DB: QueryContext(ctx, sql)
    DB-->>Repo: Results
    Repo-->>Route: Results
    Route-->>User: JSON Response
```
Pull Request #21: fix: Conduct a code review to test automated PR generation

2 of 25 new or added lines in 5 files covered. (8.0%)

1 existing line in 1 file now uncovered.

341 of 1171 relevant lines covered (29.12%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
14.96
-0.24% 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
14.96
-0.24% internal/repository.go
Jobs
ID Job ID Ran Files Coverage
1 25998499927.1 17 May 2026 06:01PM UTC 20
29.12
GitHub Action Run
Source Files on build 25998499927
  • Tree
  • List 20
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #21
  • PR Base - main (#25998284121)
  • 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