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

rm-hull / next-departures-api / 25457065672 / 1
28%
main: 28%

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

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>

289 of 1031 relevant lines covered (28.03%)

0.3 hits per line

Source Files on job 25457065672.1
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25457065672
  • 7b6418b6 on github
  • Prev Job for on main (#25361773757.1)
  • Next Job for on main (#25457852195.1)
  • 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