Add API to the Rust and C++ interpreter library to return the names of all publicly declared callbacks

This commit is contained in:
Simon Hausmann 2021-06-07 11:43:04 +02:00
parent fb19588c8c
commit 855808f9b5
4 changed files with 43 additions and 1 deletions

View file

@ -312,6 +312,10 @@ SCENARIO("Component Definition Properties")
REQUIRE(properties.size() == 1);
REQUIRE(properties[0].property_name == "test");
REQUIRE(properties[0].property_type == Value::Type::String);
auto callback_names = comp_def.callback_names();
REQUIRE(callback_names.size() == 1);
REQUIRE(callback_names[0] == "dummy");
}
SCENARIO("Component Definition Properties / Two-way bindings")