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

Function TEST

tests/src/Base/Tools.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7// NOLINTBEGIN(cppcoreguidelines-*,readability-*)
8
9TEST(Tools, TestIota)
10{
11 Base::iotaGen<int> iota(1);
12 std::vector<int> vec(5);
13 std::generate(vec.begin(), vec.end(), iota);
14 std::vector<int> out = {1, 2, 3, 4, 5};
15 EXPECT_EQ(vec, out);
16}
17
18TEST(Tools, TestClamp)
19{

Callers

nothing calls this directly

Calls 5

generateFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
testMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected