• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 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
  • dev
  • 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
36319842963 fix/persist-full-write-upstream Merge 5c2b899b1 into 0aa83d264 Pull #261 27 Sep 2026 12:43PM UTC web-flow github
92.71
33413376255 fix/inactive-limit-without-value Merge 7e1f121e4 into 0aa83d264 Pull #255 31 Aug 2026 04:20PM UTC web-flow github
92.78
30692018411 chore/redundant-nil-checks Merge 28b5633c4 into 0aa83d264 Pull #258 01 Aug 2026 08:36AM UTC web-flow github
92.76
30652501724 docs/testspec-coverage-comments Merge 16dc04d5a into 0aa83d264 Pull #254 31 Jul 2026 05:48PM UTC web-flow github
92.78
30652496786 fix/inactive-limit-without-value Merge e735091ff into 0aa83d264 Pull #255 31 Jul 2026 05:48PM UTC web-flow github
92.78
30651494855 chore/redundant-nil-checks Merge b8e832bb8 into 0aa83d264 Pull #258 31 Jul 2026 05:33PM UTC web-flow github
92.8
30639628202 chore/redundant-nil-checks Merge bb3af3b4d into 0aa83d264 Pull #258 31 Jul 2026 02:42PM UTC web-flow github
92.75
30639201999 chore/redundant-nil-checks Merge 2b9e896de into 0aa83d264 Pull #258 31 Jul 2026 02:36PM UTC web-flow github
92.78
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