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

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

Build:
DEFAULT BRANCH: main
Ran 06 Mar 2026 12:34AM 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 Mar 2026 12:32AM UTC coverage: 18.658%. Remained the same
22743229604

push

github

web-flow
feat: add fuel price snapshot statistics view (#25)

* feat: add daily fuel price statistics view

Introduce a new `daily_fuel_price_stats` database view providing
national and regional fuel price metrics.

-   Enable the `sqlite_math_functions` build tag to support `SQRT` and
    variance calculations within SQLite.
-   Standardize postcodes to **uppercase** in the database to ensure
    consistent grouping by postcode area.
-   Calculate daily `min`, `avg`, `max`, and `stddev` for both national
    and area-specific scopes.
-   Add comprehensive integration tests to verify statistical accuracy.

* feat: migrate fuel stats to a snapshot view

Renamed the stats view and removed the date filter to ensure the
latest price for every station is included, even if not updated
today.

*   Rename `daily_fuel_price_stats` to `fuel_price_snapshot_stats`.
*   Remove the `DATE('now')` filter from the view definition.
*   Update `stats_view_test.go` to handle multi-day data and fix a
    column mapping bug in `Scan`.
*   Add documentation for running tests with required build tags in
    `README.md`.

* Update migrations/000003_add_price_stats_view.down.sql

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

* fix: filter empty postcodes in price stats

Exclude invalid or empty postcode areas from the price statistics view
to improve data quality. This prevents records with missing location
data from being grouped into an empty postcode category.

Additionally, handle an un-ignored error when closing database rows in
unit tests.

---------

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

1 of 1 new or added line in 1 file covered. (100.0%)

203 of 1088 relevant lines covered (18.66%)

0.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22743229604.1 06 Mar 2026 12:34AM UTC 17
18.66
GitHub Action Run
Source Files on build 22743229604
  • Tree
  • List 17
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f6d8f5c1 on github
  • Prev Build on main (#22732672415)
  • Next Build on main (#22774778879)
  • 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