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

map-services / company-data-api / 26000731268
40%
main: 40%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 17 May 2026 07:40PM UTC
Jobs 1
Files 15
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 07:39PM UTC coverage: 39.657% (+0.8%) from 38.86%
26000731268

Pull #102

github

gemini-pr-agent[bot]
chore: iterative updates from Gemini based on PR comment

The `RequestLogger` middleware has been refactored to support variadic exclude paths and now mirrors the implementation pattern from the requested repository. Unit tests have been added to verify that the middleware correctly logs standard requests and skips excluded paths.

### Changes Summary
- **Refactored `internal/middleware/request.go`**: Updated `RequestLogger` to accept a logger and variadic `excludedPaths`. It now correctly filters requests based on the provided paths and uses the `slog` logger with consistent formatting.
- **Updated `cmd/api_server.go`**: Updated the middleware configuration to pass `slog.Default()` and the excluded paths (`/healthz` and `/metrics`) to `RequestLogger`.
- **Added `internal/middleware/request_test.go`**: Created new unit tests to confirm the logging behavior and path exclusion logic, ensuring they function as expected in `gin` environments.

Tests have been verified to pass using `go test`.
Pull Request #102: fix: convert to JSON structured logging using `log/slog`

30 of 84 new or added lines in 11 files covered. (35.71%)

5 existing lines in 3 files now uncovered.

324 of 817 relevant lines covered (39.66%)

0.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
0.0
0.0% cmd/api_server.go
7
0.0
pkg/logger/logger.go
6
0.0
0.0% cmd/code_point.go
6
0.0
0.0% cmd/companies_house.go
6
0.0
0.0% internal/downloader.go
4
75.68
0.0% internal/importer/code_point.go
4
83.25
0.0% internal/importer/company_data.go
3
0.0
0.0% internal/repositories/search.go
2
92.31
internal/middleware/request.go
2
0.0
0.0% internal/routes/search.go
1
0.0
0.0% internal/db.go

Coverage Regressions

Lines Coverage ∆ File
3
0.0
0.0% cmd/api_server.go
1
0.0
0.0% cmd/code_point.go
1
0.0
0.0% cmd/companies_house.go
Jobs
ID Job ID Ran Files Coverage
1 26000731268.1 17 May 2026 07:40PM UTC 15
39.66
GitHub Action Run
Source Files on build 26000731268
  • Tree
  • List 15
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #102
  • PR Base - main (#26000550293)
  • 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