• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

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

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 17 May 2026 05:27PM 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 05:21PM UTC coverage: 29.626% (+1.3%) from 28.278%
25997719096

Pull #19

github

rm-hull
feat: implement configurable logger middleware

Replaced the hardcoded `SlogMiddleware` with a flexible `Logger`
middleware that supports path exclusion via arguments.

*   Added `Logger` function with `excludedPaths` parameter.
*   Updated `ApiServer` to ignore `/metrics` and `/healthz`.
*   Added unit tests to verify logging and exclusion behavior.

```mermaid
sequenceDiagram
    participant C as Client
    participant M as Logger Middleware
    participant H as Handler

    C->>M: Request
    M->>H: c.Next()
    H-->>M: Response
    M->>M: Check if path is excluded
    alt Not Excluded
        M->>M: Log request details
    end
    M-->>C: Response
```
Pull Request #19: refactor: convert to structured logging via `log/slog`

27 of 67 new or added lines in 12 files covered. (40.3%)

6 existing lines in 4 files now uncovered.

341 of 1151 relevant lines covered (29.63%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
0.0% main.go
6
0.0
0.0% internal/downloader.go
6
15.2
0.0% internal/repository.go
4
0.0
0.0% cmd/api_server.go
4
0.0
0.0% internal/db.go
3
0.0
0.0% internal/cron.go
2
92.31
internal/middleware/logger.go
2
46.86
-0.23% internal/models/naptan.go
2
82.86
0.0% internal/routes/next_departures.go
2
0.0
0.0% internal/routes/search.go
1
0.0
0.0% cmd/bootstrap.go
1
0.0
0.0% cmd/import.go

Coverage Regressions

Lines Coverage ∆ File
3
0.0
0.0% main.go
1
0.0
0.0% cmd/import.go
1
0.0
0.0% internal/db.go
1
46.86
-0.23% internal/models/naptan.go
Jobs
ID Job ID Ran Files Coverage
1 25997719096.1 17 May 2026 05:27PM UTC 20
29.63
GitHub Action Run
Source Files on build 25997719096
  • Tree
  • List 20
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #19
  • PR Base - main (#25995013906)
  • 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