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

rm-hull / fuel-prices-api / 22687110884
19%
main: 50%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 04 Mar 2026 08:09PM 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

04 Mar 2026 08:08PM UTC coverage: 18.692% (-0.1%) from 18.796%
22687110884

Pull #22

github

rm-hull
feat: add support for incremental data fetching

Introduces a `--full-refresh` CLI flag and logic to fetch only data
updated since the last successful request using the
`effective-start-timestamp` query parameter.

*   Adds `fullRefresh` toggle to `fuelPricesManager`.
*   Updates `ApiServer` and `bootstrap` to propagate the new setting.
*   Forces full refresh for the `import` command.
*   Conditionally includes `effective-start-timestamp` in API calls.

```mermaid
sequenceDiagram
    participant CLI as CLI (main.go)
    participant Cmd as API/Import Command
    participant Client as FuelPricesClient
    participant Gov as GOV.UK API

    CLI->>Cmd: Execute with fullRefresh flag
    Cmd->>Client: NewFuelPricesClient(..., fullRefresh)
    Client->>Client: getEffectiveStartTimestamp()
    alt !fullRefresh AND lastFetch exists
        Client->>Gov: GET /path?effective-start-timestamp=...
    else
        Client->>Gov: GET /path
    end
```
Pull Request #22: feat: add support for incremental data fetching

0 of 22 new or added lines in 5 files covered. (0.0%)

32 existing lines in 1 file now uncovered.

203 of 1086 relevant lines covered (18.69%)

0.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
0.0
0.0% internal/client_fetch.go
3
0.0
0.0% main.go
2
0.0
0.0% cmd/api_server.go
2
0.0
0.0% cmd/bootstrap.go
1
0.0
0.0% cmd/import.go

Coverage Regressions

Lines Coverage ∆ File
32
0.0
0.0% internal/client_fetch.go
Jobs
ID Job ID Ran Files Coverage
1 22687110884.1 04 Mar 2026 08:09PM UTC 17
18.69
GitHub Action Run
Source Files on build 22687110884
  • Tree
  • List 17
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #22
  • PR Base - main (#22685973199)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc