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

Method testParseValueInt32

tests/test_format.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void testParseValueInt32() {
92 bool ok;
93 QByteArray b = fmt::parseValue(NodeKind::Int32, "-42", &ok);
94 QVERIFY(ok);
95 QCOMPARE(b.size(), 4);
96 int32_t v;
97 memcpy(&v, b.data(), 4);
98 QCOMPARE(v, -42);
99 }
100
101 void testParseValueFloat() {
102 bool ok;

Callers

nothing calls this directly

Calls 2

parseValueFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected