MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / TEST

Function TEST

src/utilities/core/test/ApplicationPathHelpers_GTest.cpp:63–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61using namespace openstudio;
62
63TEST(ApplicationPathHelpers, Strings) {
64 path applicationPath = getApplicationPath();
65 path applicationDir = getApplicationDirectory();
66 path openstudioModule = getOpenStudioModule();
67 path openstudioModuleDirectory = getOpenStudioModuleDirectory();
68 path openstudioCLI = getOpenStudioCLI();
69 path energyplusDirectory = getEnergyPlusDirectory();
70 path energyplusExecutable = getEnergyPlusExecutable();
71
72 EXPECT_TRUE(exists(applicationPath));
73 EXPECT_TRUE(exists(applicationDir));
74 EXPECT_TRUE(exists(openstudioModule));
75 EXPECT_TRUE(exists(openstudioModuleDirectory));
76 EXPECT_TRUE(exists(openstudioCLI));
77 EXPECT_TRUE(exists(energyplusDirectory));
78 EXPECT_TRUE(exists(energyplusExecutable));
79}
80
81// This is really in PathHelpers but used by ApplicationPathHelpers
82TEST(ApplicationPathHelpers, findInSystemPath) {

Callers

nothing calls this directly

Calls 10

findInSystemPathFunction · 0.85
pathDelimiterFunction · 0.85
setenvFunction · 0.85
IsElevatedFunction · 0.85
completeAndNormalizeFunction · 0.85
filenameMethod · 0.80
toPathFunction · 0.50
toStringFunction · 0.50
closeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected