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

Method JsonTest

tests/gtest_json.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92{
93protected:
94 JsonTest()
95 {
96 BT::JsonExporter& exporter = BT::JsonExporter::get();
97 exporter.addConverter<TestTypes::Pose3D>();
98 exporter.addConverter<TestTypes::Vector3D>();
99 exporter.addConverter<TestTypes::Quaternion3D>();
100
101 exporter.addConverter<TestTypes::Time>(TestTypes::jsonFromTime);
102 exporter.addConverter<TestTypes::Time>(TestTypes::jsonToTime);
103 }
104};
105
106TEST_F(JsonTest, TwoWaysConversion)

Callers

nothing calls this directly

Calls 1

getFunction · 0.50

Tested by

no test coverage detected