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

rm-hull / fuel-prices-api / 22203703132
22%

Build:
DEFAULT BRANCH: main
Ran 19 Feb 2026 11:00PM UTC
Jobs 1
Files 15
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

19 Feb 2026 11:00PM UTC coverage: 22.017% (-6.8%) from 28.783%
22203703132

push

github

web-flow
feat: add command to update retailer favicons & enrich search results with retailer metadata (#11)

* feat: add command to update retailer favicons

Introduces a new CLI command to scrape favicon URLs for fuel retailers
listed in a CSV file. This includes a new extraction engine that
prioritizes high-resolution icons and social media metadata.

- Add `favicons` command to `main.go`.
- Implement `internal/favicon` for HTML scraping and icon discovery.
- Add a generic CSV parser using **Go 1.23+** iterators.
- Include a seed list of UK fuel retailers in `internal/brands`.

```mermaid
sequenceDiagram
    participant CLI as Main/CLI
    participant CMD as update_favicons
    participant Retailers as brands.GetRetailersList
    participant Extractor as favicon.Extract
    participant Web as Retailer Website
    participant CSV as retailers.csv

    CLI->>CMD: Run UpdateFaviconsInCSV
    CMD->>Retailers: Load embedded CSV
    Retailers-->>CMD: List of Retailers
    loop Each Retailer
        CMD->>Extractor: Extract(URL)
        Extractor->>Web: HTTP GET
        Web-->>Extractor: HTML Content
        Extractor-->>CMD: Best Favicon URL
    end
    CMD->>CSV: Write updated records
```

* feat: add retailer favicons and brand matching

Enrich search results with retailer metadata, specifically favicon
URLs, to improve the API's front-end integration capabilities.

- Add favicon URLs for various fuel brands in `retailers.csv`.
- Implement brand name matching logic in `internal/models`.
- Update repository to link search results with retailer info.
- Adjust **VS Code** launch tasks and bootstrap process.

```mermaid
sequenceDiagram
    participant API
    participant Repository
    participant RetailersMap

    API->>Repository: fetchPfs(boundingBox)
    Repository->>Repository: Execute SQL Query
    loop For each record
        Repository->>RetailersMap: MatchBrandName(brand)
        RetailersMap-->>Repository: Retailer Metadata
        Repository->>Repository:... (continued)

11 of 257 new or added lines in 8 files covered. (4.28%)

203 of 922 relevant lines covered (22.02%)

0.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
0.0
0.0% cmd/bootstrap.go
19
0.0
0.0% main.go
22
0.0
internal/brands/retailers.go
24
22.58
internal/models/retailer.go
35
0.0
cmd/update_favicons.go
44
0.0
internal/csv.go
97
0.0
internal/favicon/extractor.go
Jobs
ID Job ID Ran Files Coverage
1 22203703132.1 19 Feb 2026 11:00PM UTC 15
22.02
GitHub Action Run
Source Files on build 22203703132
  • Tree
  • List 15
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 58122ec5 on github
  • Prev Build on main (#22200286581)
  • Next Build on main (#22203874376)
  • 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