| 49 | }; |
| 50 | |
| 51 | TEST(BlackboardTest, GetInputsFromBlackboard) |
| 52 | { |
| 53 | auto bb = Blackboard::create(); |
| 54 | |
| 55 | NodeConfig config; |
| 56 | assignDefaultRemapping<BB_TestNode>(config); |
| 57 | |
| 58 | config.blackboard = bb; |
| 59 | bb->set("in_port", 11); |
| 60 | |
| 61 | BB_TestNode node("good_one", config); |
| 62 | |
| 63 | // this should read and write "my_entry" in tick() |
| 64 | node.executeTick(); |
| 65 | |
| 66 | ASSERT_EQ(bb->get<int>("out_port"), 22); |
| 67 | } |
| 68 | |
| 69 | TEST(BlackboardTest, BasicRemapping) |
| 70 | { |
nothing calls this directly
no test coverage detected