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

rm-hull / fuel-prices-api
20%

Build:
DEFAULT BRANCH: main
Repo Added 15 Feb 2026 04:17PM UTC
Token ll95Syy8THJQo9UoER7i47AlSjfaC54Tt regen
Build 46 Last
Files 16
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • chore/cicd-build
  • chore/data-cleansing
  • chore/migrations
  • feat/brand-icons
  • feat/cron-scheduling
  • feat/gin-integration
  • feat/per-type-limits
  • feat/stats
  • feat/windowing-same-price
  • main

21 Feb 2026 01:19AM UTC coverage: 20.402% (-1.6%) from 22.017%
22247504199

push

github

web-flow
feat: add price statistics to search response (#12)

* feat: add price statistics to search response

Adds a new `statistics` field to the search API response to provide
insights into fuel price data.

- Create `stats` package to calculate averages, price distribution, and
  standard deviation.
- Update `SearchResponse` model to include statistical metadata.
- Enable `--debug` flag in VS Code launch configuration.
- Update test coordinates in `test_api.http`.

```mermaid
sequenceDiagram
    participant C as Client
    participant R as Search Route
    participant S as Stats Package
    C->>R: GET /search
    R->>R: Fetch results from Repository
    R->>S: Derive(results)
    S-->>R: SearchStatistics
    R-->>C: SearchResponse (Results + Statistics)
```

* perf: optimize variance calculation

Replace `math.Pow` with direct multiplication when calculating variance.
Squaring a number via multiplication is more computationally efficient
than calling the power function.

* refactor: consolidate loops in stats derivation

Consolidate statistics calculation logic to reduce redundant
iterations over search results and fuel price arrays.

*   Move **Brand Distribution** counting into the main results loop.
*   Combine **Standard Deviation** variance accumulation with the price
    distribution bucketing logic.

0 of 73 new or added lines in 2 files covered. (0.0%)

203 of 995 relevant lines covered (20.4%)

0.22 hits per line

Relevant lines Covered
Build:
Build:
995 RELEVANT LINES 203 COVERED LINES
0.22 HITS PER LINE
Source Files on main
  • Tree
  • List 16
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22247504199 main feat: add price statistics to search response (#12) * feat: add price statistics to search response Adds a new `statistics` field to the search API response to provide insights into fuel price data. - Create `stats` package to calculate average... push 21 Feb 2026 01:20AM UTC web-flow github
20.4
22247439246 feat/stats refactor: consolidate loops in stats derivation Consolidate statistics calculation logic to reduce redundant iterations over search results and fuel price arrays. * Move **Brand Distribution** counting into the main results loop. * Combine *... Pull #12 21 Feb 2026 01:16AM UTC rm-hull github
20.4
22247172741 feat/stats perf: optimize variance calculation Replace `math.Pow` with direct multiplication when calculating variance. Squaring a number via multiplication is more computationally efficient than calling the power function. Pull #12 21 Feb 2026 01:01AM UTC rm-hull github
20.38
22247145571 feat/stats feat: add price statistics to search response Adds a new `statistics` field to the search API response to provide insights into fuel price data. - Create `stats` package to calculate averages, price distribution, and standard deviation. - Upda... Pull #12 21 Feb 2026 01:00AM UTC rm-hull github
20.4
22206592876 main feat: add Sewell on the Go retailer Add `SEWELL ON THE GO` to the retailers CSV including its official website and favicon URL. This expands the list of supported brands available to the application. push 20 Feb 2026 12:49AM UTC rm-hull github
22.02
22206389842 main chore: update TotalEnergies logo URL Update the brand asset for **TotalEnergies** in the retailers data file. The previous URL pointing to a favicon has been replaced with a high- quality SVG logo. push 20 Feb 2026 12:41AM UTC rm-hull github
22.02
22205981804 main chore: update retailer logos and add Shell - Update logo URLs for **BP**, **JET**, **TEXACO**, and **VALERO** to more reliable or higher quality sources (PNG/SVG). - Re-add **SHELL** to the `retailers.csv` dataset (mistakenly deleted). push 20 Feb 2026 12:25AM UTC rm-hull github
22.02
22204797649 main docs: add API reference link to README Include a link to the official **Fuel Finder** public API documentation in the **References** section for better context. push 19 Feb 2026 11:39PM UTC rm-hull github
22.02
22204692876 main refactor: rename Retailer fields and JSON tags Rename `Url` to `WebsiteUrl` and `Favicon` to `LogoUrl` within the `Retailer` model to improve naming clarity. This change includes updating JSON tags to snake_case and adjusting all internal referen... push 19 Feb 2026 11:36PM UTC rm-hull github
22.02
22204597852 main chore: update a few favicons push 19 Feb 2026 11:33PM UTC web-flow github
22.02
See All Builds (46)

Badge your Repo: fuel-prices-api

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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