MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testKindStringRoundTrip

Method testKindStringRoundTrip

tests/test_core.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 void testKindStringRoundTrip() {
28 for (int i = 0; i <= static_cast<int>(rcx::NodeKind::Array); i++) {
29 auto kind = static_cast<rcx::NodeKind>(i);
30 QString s = rcx::kindToString(kind);
31 QCOMPARE(rcx::kindFromString(s), kind);
32 }
33 }
34
35 void testNodeTree_addAndChildren() {
36 rcx::NodeTree tree;

Callers

nothing calls this directly

Calls 2

kindToStringFunction · 0.85
kindFromStringFunction · 0.85

Tested by

no test coverage detected