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

enbility / eebus-go
93%

Build:
DEFAULT BRANCH: dev
Repo Added 05 Dec 2022 04:29PM UTC
Files 105
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 dev
branch: dev
CHANGE BRANCH
x
Reset
  • dev
  • 188-update-controlboxhems-examples-positive_failsafe_limits
  • 188-update-controlboxhems-examples-to-write-negative-appl-values
  • bugfix/remote-uc-removal
  • chore/bump-spine-go-to-prepare-for-releases
  • chore/redundant-nil-checks
  • docs/testspec-coverage-comments
  • feat/ca-cdsf
  • feat/ca-crcsf
  • feat/ca-crct
  • feat/ca-crhsf
  • feat/ca-crht
  • feat/consistent-write-operation-gate
  • feat/hvac-setpoint-features
  • feat/implement-mu-mpc
  • feat/ma-mdsf
  • feat/ma-mdt
  • feat/ma-mrcsf
  • feat/ma-mrhsf
  • feat/mot-usecase
  • feat/mrt-usecase
  • feat/rebased-mu-mpc-mgcp
  • feat/va-vhan
  • feature/binding-handling
  • feature/examples-clarification
  • feature/improve-data
  • feature/improve-disconnect-handling
  • feature/improved-register-handling
  • feature/jsonrpc2
  • feature/minor-maintenance
  • feature/mu-mpc--gcp-mgcp--smartmeter-demo
  • feature/shippairing-integration
  • fix/cs-lpc-lpp-0-duration
  • fix/eg-lpc-electricalconnection-sync
  • fix/eg-lpc-lpp-missing-constraints-setup
  • fix/event-firing-consistency
  • fix/gcp-mgcp-valid-actor-types
  • fix/ignore-usecaseavailable-eg
  • fix/inactive-limit-without-value
  • fix/loadcontrol-phase-parameter-description
  • fix/lpc-lpp-dependencies
  • fix/missing-pointer-nil-checks
  • fix/ohpcf-register-event-handler
  • fix/ohpcf-sequence-id
  • fix/opev-oscev-heartbeat
  • fix/optional-function-not-supported
  • fix/persist-full-write-upstream
  • fix/regenerate-mocks
  • fix/report-per-phase-measurements-for-correct-phase
  • fix/use-correct-eg-lpc-lpp-characteristic-types
  • implement-cem-ohpcf
  • implement-gcp-mgcp
  • main
  • ohpcf-msgcounter
  • patch-3
  • patch-5
  • push-zxvruxpyxtuv
  • result-callback-with-message-counter
  • test/lpp-partial-write-parity
  • wip/failsafe-limit-write-approval

30 Sep 2026 05:04PM UTC coverage: 92.757% (+0.05%) from 92.709%
36748858296

push

github

web-flow
chore: remove redundant nil checks (#258)

`len()` is defined on nil slices and returns `0`, so the paired `== nil`
check is redundant. Likewise, ranging over a nil slice is a no-op, so
the guard around it adds nothing.

- `features/internal/deviceconfiguration.go` — `descriptions == nil ||
len(descriptions) == 0`
- `usecases/cs/lpc/usecase.go` — `data.LoadControlLimitData == nil ||
len(data.LoadControlLimitData) == 0`
- `usecases/cs/lpp/usecase.go` — same
- `features/internal/electricalconnection.go` — `if set.Range != nil {
for _, rangeItem := range set.Range {` guard removed

The outer `data == nil` checks are kept — those guard the pointer
dereference.

Found with an AST pass over the whole repo rather than a text search, so
the set is complete for these shapes: `x == nil || len(x) == 0` and `x
!= nil && len(x) > 0` in either operand order and including the `< 1` /
`<= 0` / `!= 0` / `>= 1` spellings, plus nil guards wrapping a `range`
or `append` on the same value.

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

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

9272 of 9996 relevant lines covered (92.76%)

13.94 hits per line

Relevant lines Covered
Build:
Build:
9996 RELEVANT LINES 9272 COVERED LINES
13.94 HITS PER LINE
Source Files on dev
  • Tree
  • List 105
  • Changed 11
  • Source Changed 10
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
36748858296 dev chore: remove redundant nil checks (#258) `len()` is defined on nil slices and returns `0`, so the paired `== nil` check is redundant. Likewise, ranging over a nil slice is a no-op, so the guard around it adds nothing. - `features/internal/devic... push 30 Sep 2026 05:06PM UTC web-flow github
92.76
36748033431 dev Persist full-list writes to the remote feature cache (#261) Follow-up to https://github.com/enbility/eebus-go/pull/253 ## Problem Remotes that announce a list function as writeable without `partial` support receive the complete list on every wr... push 30 Sep 2026 04:59PM UTC web-flow github
92.71
30638645418 dev 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 discover... push 31 Jul 2026 02:28PM UTC web-flow github
92.81
29737760360 dev Fix validActorTypes for GCP MGCP use case. (#236) validActorTypes contains the valid remote actors, not which actors are valid locally. push 20 Jul 2026 11:13AM UTC web-flow github
92.81
29737576952 dev Add Monitoring of DHW Temperature (MDT) use case (#226) Adds the `ma/mdt` use case: a Monitoring Appliance reading a DHW circuit's domestic hot water temperature, per the EEBus UC TS *Monitoring of DHW Temperature* v1.0.0 (`monitoringOfDhwTempera... push 20 Jul 2026 11:11AM UTC web-flow github
92.81
28928364001 dev LPC/LPP CS: Fix expected remote Entity types (#235) Fix https://github.com/enbility/eebus-go/issues/234 push 08 Jul 2026 08:23AM UTC web-flow github
92.75
28926767023 dev Add msgCounter to OHPCF result callbacks (#231) Follow-up to #210 as requested in https://github.com/enbility/eebus-go/pull/210#issuecomment-4901842186. #210 added `msgCounter` to the result callback for `WriteLoadControlLimits` (OPEV/OSCEV) and... push 08 Jul 2026 07:55AM UTC web-flow github
91.9
28786253658 dev Register OHPCF event handler in constructor (#230) This PR reopens #228 since that got auto-closed when I merged #223 and I can't reopen it push 06 Jul 2026 10:53AM UTC web-flow github
91.93
28368348842 dev chore: fix EventType comment (#184) Fix typo and remove reference to cem push 29 Jun 2026 11:22AM UTC web-flow github
92.69
28368279500 dev Fix/lpc lpp not able to notify nominal max values (#205) Fixes #173 push 29 Jun 2026 11:21AM UTC web-flow github
92.71
See All Builds (557)
  • Repo on GitHub
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