Skip to content

Conversation

xBlaz3kx
Copy link
Collaborator

@xBlaz3kx xBlaz3kx commented Jul 7, 2025

Proposed changes

  • Added all component and variable definitions
  • Implemented controllers from OCPP 2.0.1 spec (wip)
  • Added component management (abstracted)

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you
did and what alternatives you considered, etc...

@xBlaz3kx xBlaz3kx self-assigned this Jul 7, 2025
@xBlaz3kx xBlaz3kx added enhancement New feature or request go Pull requests that update Go code labels Jul 7, 2025
@xBlaz3kx xBlaz3kx linked an issue Jul 7, 2025 that may be closed by this pull request
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ChargePi/ocpp-manager/ocpp_v201 6.45% (+6.45%) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/component 30.00% (+30.00%) 🌟
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers 6.55% (+6.55%) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/variables 31.58% (+31.58%) 🌟

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ChargePi/ocpp-manager/ocpp_v201/charging_infrastructure.go 0.00% (ø) 0 0 0
github.com/ChargePi/ocpp-manager/ocpp_v201/component/component.go 0.00% (ø) 0 0 0
github.com/ChargePi/ocpp-manager/ocpp_v201/component/component_variable_opts.go 30.00% (+30.00%) 10 (+10) 3 (+3) 7 (+7) 🌟
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/aligned_data_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/auth_cache_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/auth_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/chademo_ctrlr.go 0.00% (ø) 5 (+5) 0 5 (+5)
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/clock_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/customization_ctrlr.go 3.64% (+3.64%) 55 (+55) 2 (+2) 53 (+53) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/device_data_ctrlr.go 2.86% (+2.86%) 70 (+70) 2 (+2) 68 (+68) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/display_message_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/iso15118_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/local_auth_list_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/monitoring_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/ocpp_comm_ctrlr.go 5.81% (+5.81%) 86 (+86) 5 (+5) 81 (+81) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/reservation_ctrlr.go 6.15% (+6.15%) 65 (+65) 4 (+4) 61 (+61) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/sampled_data_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/security_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/smart_charging_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/tariff_cost_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/tx_ctrlr.go 7.14% (+7.14%) 70 (+70) 5 (+5) 65 (+65) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/ctrlr_manager.go 6.45% (+6.45%) 62 (+62) 4 (+4) 58 (+58) 👍
github.com/ChargePi/ocpp-manager/ocpp_v201/variables/variables.go 31.58% (+31.58%) 247 (+247) 78 (+78) 169 (+169) 🌟

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/ChargePi/ocpp-manager/ocpp_v201/component/component_variable_opts_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/aligned_data_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/auth_cache_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/auth_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/chademo_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/clock_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/device_data_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/display_message_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/local_auth_list_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/monitoring_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/ocpp_comm_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/reservation_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/sampled_data_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/security_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/smart_charging_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/tariff_cost_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/controllers/tx_ctrlr_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/ctrlr_manager_test.go
  • github.com/ChargePi/ocpp-manager/ocpp_v201/variables/variables_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Support for OCPP 2.0.1 config variables
1 participant