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

Method testEditableValueBasic

tests/test_format.cpp:251–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 void testEditableValueBasic() {
252 QByteArray data(16, '\0');
253 // Write a known float value
254 float val = 3.14f;
255 memcpy(data.data(), &val, 4);
256 BufferProvider prov(data);
257
258 Node n;
259 n.kind = NodeKind::Float;
260 n.name = "f";
261 QString s = fmt::editableValue(n, prov, 0, 0);
262 QVERIFY(s.contains("3.14"));
263
264 // Vec2 single-line: returns comma-separated values
265 n.kind = NodeKind::Vec2;
266 QString vec2 = fmt::editableValue(n, prov, 0, 0);
267 QVERIFY(vec2.contains(","));
268 }
269
270 void testParseValueEmptyString() {
271 bool ok;

Callers

nothing calls this directly

Calls 1

editableValueFunction · 0.85

Tested by

no test coverage detected