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

enbility / eebus-go / 46489838815
93%

Build:
DEFAULT BRANCH: dev
Ran 30 Nov 2026 06:58PM 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

30 Nov 2026 06:56PM UTC coverage: 92.25% (-0.02%) from 92.27%
46489838815

push

github

web-flow
Report per phase measurements for correct phase (#154)

If/when a device registers PhaseSpecific measurements only for one
specific phase (or registers them for all phases but only provides
measurements for one of them), MeasurementPhaseSpecificDataForFilter()
returns a []float64 containing only 1 value with no way for the API user
to know for which phase the measurement was meant. This is an issue in
e.g. ma/mpc's PowerPerPhase which would then return an array with less
than 3 members and callers would then not know to which phase the
measurement corresponds.

This PR changes the return type of MeasurementPhaseSpecificDataForFilter
to always contain one entry per phase so that for a device which only
reports data on phase B, it would return []float64{0, 10, 0} instead of
[]float64{10}. The advantage of this approach is that it doesn't change
the return type of MeasurementPhaseSpecificDataForFilter or any of its
callers, the downside is that callers can't (easily) distinguish devices
that are reporting 0 for a phase and devices that aren't reporting a
phase at all. The alternative would be to change the return type from
[]float64 to map[ElectricalConnectionPhaseNameType]float64 and then
going through all the callers to make them use/return that as well.

I'm not particular to either approach so I picked the one that changed
the surface API less.

69 of 74 new or added lines in 6 files covered. (93.24%)

2 existing lines in 1 file now uncovered.

8273 of 8968 relevant lines covered (92.25%)

13.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
90.22
0.05% usecases/internal/measurement.go
1
92.5
-0.6% usecases/ma/mgcp/public.go
1
94.02
-0.67% usecases/ma/mpc/public.go

Coverage Regressions

Lines Coverage ∆ File
2
96.45
0.0% usecases/mu/mpc/usecase.go
Jobs
ID Job ID Ran Files Coverage
1 46489838815.1 30 Nov 2026 06:58PM UTC 105
92.25
GitHub Action Run
Source Files on build 46489838815
  • Tree
  • List 105
  • Changed 10
  • Source Changed 9
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46489838815
  • 4ad63624 on github
  • Prev Build on dev (#46474664960)
  • Next Build on dev (#46492806141)
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