MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / parseQuantity

Function parseQuantity

tests/src/Mod/Material/App/TestMaterials.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220QString parseQuantity(const std::string& value)
221{
222 auto quantity = Base::Quantity::parse(value);
223 quantity.setFormat(Materials::MaterialValue::getQuantityFormat());
224 return QString::fromStdString(quantity.getUserString());
225}
226
227TEST_F(TestMaterial, TestCalculiXSteel)
228{

Callers 3

getQuantityMethod · 0.85
getQuantityMethod · 0.85
TEST_FFunction · 0.85

Calls 3

parseFunction · 0.50
setFormatMethod · 0.45
getUserStringMethod · 0.45

Tested by

no test coverage detected