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

Function TEST

tests/src/Base/UniqueNameManager.cpp:26–31  ·  view source on GitHub ↗

NOLINTBEGIN(cppcoreguidelines-*,readability-*)

Source from the content-addressed store, hash-verified

24
25// NOLINTBEGIN(cppcoreguidelines-*,readability-*)
26TEST(UniqueNameManager, NonconflictingBaseNameReturnsSameName)
27{
28 // Check that a model name that is a base name that does not conflict with
29 // any existing name returns the base name
30 EXPECT_EQ(Base::UniqueNameManager().makeUniqueName("Body"), "Body");
31}
32
33TEST(UniqueNameManager, NonconflictingUniqueNameReturnsBaseName)
34{

Callers

nothing calls this directly

Calls 2

makeUniqueNameMethod · 0.80
addExactNameMethod · 0.80

Tested by

no test coverage detected