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

lorenzodonini / ocpp-go / 24502108742
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: fix/mocks
DEFAULT BRANCH: master
Ran 16 Apr 2026 09:16AM UTC
Jobs 1
Files 54
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

16 Apr 2026 09:13AM UTC coverage: 82.862% (+0.04%) from 82.818%
24502108742

Pull #416

github

andig
feat(ocpp2.1): Add Phase C - transactions, meter, remotecontrol packages

Implements OCPP 2.1 functional blocks with full JSON schema conformance:

transactions package:
- TransactionEvent (CS -> CSMS)
- GetTransactionStatus (CSMS -> CS)

meter package:
- MeterValues (CS -> CSMS)

remotecontrol package:
- RequestStartTransaction (CSMS -> CS)
- RequestStopTransaction (CSMS -> CS)
- TriggerMessage (CSMS -> CS)
- UnlockConnector (CSMS -> CS)

New types in types.go:
- Transaction-related: ChargingState, TransactionEvent, TriggerReason,
  StoppedReason, PreconditioningStatus, TransactionLimit, Transaction
- Cost-related: CostDimension, TariffCost, TaxRate, Price, TotalPrice,
  TotalUsage, TotalCost, CostDimensionValue, ChargingPeriod, CostDetails
- Remote control: MessageTrigger, TriggerMessageStatus, UnlockStatus

Schema conformance fixes:
- Removed MeasurandTemperature (not in OCPP 2.1)
- Fixed RequestStartTransactionRequest.evseId min=1 (per schema)
- Added required tag to TransactionEventRequest.seqNo
- Added range validation for chargingPriority (-9 to 9)
- Added min=1 to updatedPersonalMessageExtra array

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Pull Request #416: feat: Add OCPP 2.1 support

3723 of 4493 relevant lines covered (82.86%)

18.16 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
85.47
0.69% ws/websocket.go
Jobs
ID Job ID Ran Files Coverage
1 24502108742.1 16 Apr 2026 09:16AM UTC 54
82.86
GitHub Action Run
Source Files on build 24502108742
  • Tree
  • List 54
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #416
  • PR Base - master (#17022091823)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc