MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / TEST

Function TEST

tests/gtest_ports.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46TEST(PortTest, WrongNodeConfig)
47{
48 NodeConfig config;
49 config.input_ports["in_port_A"] = "42";
50 // intentionally missing:
51 // config.input_ports["in_port_B"] = "69";
52 NodeWithPorts node("will_fail", config);
53 ASSERT_ANY_THROW(node.tick());
54}
55
56TEST(PortTest, DefaultPorts)
57{

Callers

nothing calls this directly

Calls 14

writeTreeNodesModelXMLFunction · 0.85
createTreeFromTextMethod · 0.80
tickWhileRunningMethod · 0.80
createTreeMethod · 0.80
rootNodeMethod · 0.80
tickOnceMethod · 0.80
toJsonMethod · 0.80
getFunction · 0.50
tickMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected