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

Method set

tests/src/Base/SchemaTests.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 {}
61
62 static std::string set(const std::string& schemaName, const Unit unit, const double value) // NOLINT
63 {
64 UnitsApi::setSchema(schemaName);
65 const auto quantity = Quantity {value, unit};
66 return quantity.getSafeUserString();
67 }
68
69 static std::string setWithPrecision(
70 const std::string& name,

Callers 2

TESTFunction · 0.45
getColorsMethod · 0.45

Calls 1

getSafeUserStringMethod · 0.80

Tested by

no test coverage detected