[core] Use placement new allocation for t Pvariables

This commit is contained in:
Kamil Cukrowski
2026-03-22 20:19:31 +01:00
parent a0d5525312
commit 7997743b15
13 changed files with 129 additions and 13 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ def test_button_is_setup(generate_main):
main_cpp = generate_main("tests/component_tests/button/test_button.yaml")
# Then
assert "new wake_on_lan::WakeOnLanButton();" in main_cpp
assert "static wake_on_lan::WakeOnLanButton *const" in main_cpp
assert ") wake_on_lan::WakeOnLanButton();" in main_cpp
assert "App.register_button" in main_cpp
assert "App.register_component" in main_cpp