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

enbility / eebus-go / 45174190847
93%

Build:
DEFAULT BRANCH: dev
Ran 23 Nov 2026 12:27PM 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

23 Nov 2026 12:25PM UTC coverage: 92.287% (-0.5%) from 92.757%
45174190847

push

github

web-flow
feat(features/client): gate writes on remote Write() support (#269)

Replaces #251, which GitHub closed automatically when its head fork was
deleted. Same branch, same commits.

## What

Consistently applies the write-capability gate introduced for the
HVAC/Setpoint helpers in #247 to the pre-existing client write helpers:

- `loadcontrol.WriteLimitData`
- `deviceconfiguration.WriteKeyValues`
- `timeseries.WriteData`
- `smartenergymanagementps.WriteData`

Each now returns `api.ErrNotSupported` unless the remote server feature
advertises `operation.Write()`.

## Why

Follow-up to the consistency discussion in
https://github.com/enbility/eebus-go/pull/247#issuecomment-5025410101.
Previously these helpers fetched `Operations()[fn]` only to decide
`WritePartial()` and never gated on `Write()`, so a write to a read-only
remote was serialized and sent, then rejected remotely, instead of
failing fast locally.

## Breaking

Minor breaking (as flagged in the PR-247 discussion): callers writing to
a remote that does not advertise write support now receive
`ErrNotSupported` instead of the write being attempted.

## Tests

- One read-only negative case per helper (new `readOnly` toggle in the
client test helper) asserting `ErrNotSupported`.
- Usecase test setups (`eg/lpc`, `eg/lpp`, `cem/cevc`, `cem/ohpcf`,
`usecases/internal`) now advertise `Write()` on remote features,
matching real devices. Without this the gate caused those write tests to
fail — and made `internal.Test_WriteLoadControlLimits` hang awaiting a
response that no longer came.

Full `./usecases/... ./features/... ./api/... ./service/...` suite
passes (26 packages, exit 0).

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

16 of 16 new or added lines in 4 files covered. (100.0%)

8256 of 8946 relevant lines covered (92.29%)

13.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45174190847.1 23 Nov 2026 12:27PM UTC 105
92.29
GitHub Action Run
Source Files on build 45174190847
  • Tree
  • List 105
  • Changed 105
  • Source Changed 4
  • Coverage Changed 105
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45174190847
  • 425d52f6 on github
  • Prev Build on dev (#36748858296)
  • Next Build on dev (#46321181753)
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