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

rm-hull / next-departures-api / 25457065672
28%

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

06 May 2026 07:40PM UTC coverage: 28.031% (-0.4%) from 28.445%
25457065672

push

github

web-flow
feat: make CSV import logging configurable (#11)

Refactor the `ImportCSV` method to return a closure, allowing the
logging frequency to be configured by the caller.

- Update `NaptanRepository` interface to return a closure.
- Support custom logging intervals for different import sources.
- Disable progress logging for cron jobs by setting the interval to 0.
- Remove hardcoded logging frequency from the repository implementation.

```mermaid
sequenceDiagram
    participant M as Caller (Cmd/Cron)
    participant R as Repository
    participant T as TransientDownload

    M->>R: ImportCSV(updateInterval)
    R-->>M: return func(tmpfile, header)
    M->>T: TransientDownload(URL, closure)
    T->>R: Execute closure with downloaded file
    loop For each CSV record
        R->>R: Process record
        Note over R: Log if count % updateInterval == 0
    end
```

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

0 of 45 new or added lines in 3 files covered. (0.0%)

11 existing lines in 1 file now uncovered.

289 of 1031 relevant lines covered (28.03%)

0.3 hits per line

Uncovered Changes

Lines Coverage ∆ File
43
14.39
-0.87% internal/repository.go
1
0.0
0.0% cmd/import.go
1
0.0
0.0% internal/cron.go

Coverage Regressions

Lines Coverage ∆ File
11
14.39
-0.87% internal/repository.go
Jobs
ID Job ID Ran Files Coverage
1 25457065672.1 06 May 2026 07:41PM UTC 17
28.03
GitHub Action Run
Source Files on build 25457065672
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7b6418b6 on github
  • Prev Build on main (#25361773757)
  • Next Build on main (#25457852195)
  • 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