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

enbility / eebus-go / 30638645418
93%

Build:
DEFAULT BRANCH: dev
Ran 31 Jul 2026 02:28PM UTC
Jobs 1
Files 105
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

31 Jul 2026 02:27PM UTC coverage: 92.806% (-0.001%) from 92.807%
30638645418

push

github

web-flow
fix: ignore useCaseAvailable flag on client (EG) side (#253)

Fixes #252 (TC_SPINE_RTC_003).

## Problem

Per SPINE-TS-UCD-01, a client acting as Energy Guard must **completely
ignore** the `useCaseAvailable` flag received during Use Case discovery.
The shared `UseCaseBase` event handler (`usecases/usecase/events.go`)
instead gated on it and `continue`d past the use case support entry
whenever the remote server sent `useCaseAvailable=false` — so the client
aborted setup and never initiated node management operations. Affects
all use cases routed through `useCaseDataUpdate()` (LPC, LPP, ...) in
the EG role.

## Fix

- Remove the `useCaseAvailable` check from the guard condition.
- Simplify the redundant `ScenarioSupport == nil && len(...) == 0` to
`ScenarioSupport == nil` (`len(nil) == 0` always).
- Replace the stale comment referencing the old behavior.

## Test

Updated `events_test.go`: the EV support entry with
`useCaseAvailable=false` now asserts the use case registers instead of
being dropped. All `usecases/...` suites pass, including `eg/lpc` and
`eg/lpp`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

9262 of 9980 relevant lines covered (92.81%)

13.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30638645418.1 31 Jul 2026 02:28PM UTC 105
92.81
GitHub Action Run
Source Files on build 30638645418
  • Tree
  • List 105
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30638645418
  • 0aa83d26 on github
  • Prev Build on dev (#29737760360)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc