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

map-services / fuel-prices-api / 25823832964

13 May 2026 08:13PM UTC coverage: 49.492% (-0.4%) from 49.863%
25823832964

push

github

web-flow
feat: add flexible refresh policies for API (#59)

* feat: add flexible refresh policies for API

Introduced a string-based `refresh` configuration to replace the boolean
`fullRefresh` flag. This allows for more granular control over data
synchronization.

- Supported values: `full`, `never`, `incremental`.
- Prevents fetching in CRON jobs when set to `never`.

```mermaid
graph LR
    A[Cron Job] --> B{ShouldRefresh?}
    B -- never --> C[Skip]
    B -- incremental --> D[Fetch Updates]
    B -- full --> E[Fetch All]
```

* refactor: simplify `ShouldRefresh` logic

Refactor the boolean check to return the result of the expression
directly, improving code readability.

4 of 24 new or added lines in 6 files covered. (16.67%)

730 of 1475 relevant lines covered (49.49%)

0.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api_server.go


Source Not Available

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