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

rm-hull / fuel-prices-api / 22811084469
46%

Build:
DEFAULT BRANCH: main
Ran 08 Mar 2026 01:14AM UTC
Jobs 1
Files 19
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

08 Mar 2026 01:14AM UTC coverage: 17.421% (-0.05%) from 17.466%
22811084469

push

github

web-flow
refactor: encapsulate snapshot data into a struct (#29)

* refactor: encapsulate snapshot data into a struct

Updated the snapshot statistics model to include a wrapper struct
containing the snapshot list and a `LastUpdated` timestamp. This
standardizes the API response and improves data context.

```mermaid
classDiagram
    class SnapshotStatistics {
        +[]Snapshot Snapshot
        +time.Time LastUpdated
    }
    class Snapshot {
        +string Scope
        +string FuelType
        +float64 AveragePrice
    }
    SnapshotStatistics o-- Snapshot
```

* refactor: migrate Snapshot models to stats package

Move `Snapshot` and `SnapshotStatistics` to `internal/models/stats.go`
and introduce `SnapshotResponse` to encapsulate the API response
structure.

```mermaid
classDiagram
    class SnapshotResponse {
        +Snapshot[] Snapshot
        +Time LastUpdated
        +string[] Attribution
    }
```

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

1 existing line in 1 file now uncovered.

204 of 1171 relevant lines covered (17.42%)

0.19 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% internal/metrics/fuel_prices_metrics.go
4
0.0
0.0% internal/routes/stats.go
8
54.55
-0.79% internal/repository.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/routes/stats.go
Jobs
ID Job ID Ran Files Coverage
1 22811084469.1 08 Mar 2026 01:14AM UTC 19
17.42
GitHub Action Run
Source Files on build 22811084469
  • Tree
  • List 19
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 70392344 on github
  • Prev Build on main (#22810208105)
  • Next Build on main (#22826190101)
  • 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