MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / GetCurrentExecutableName

Function GetCurrentExecutableName

tests/external/gmock-1.7.0/gtest/src/gtest.cc:377–387  ·  view source on GitHub ↗

Returns the current application's name, removing directory path if that is present.

Source from the content-addressed store, hash-verified

375// Returns the current application's name, removing directory path if that
376// is present.
377FilePath GetCurrentExecutableName() {
378 FilePath result;
379
380#if GTEST_OS_WINDOWS
381 result.Set(FilePath(g_executable_path).RemoveExtension("exe"));
382#else
383 result.Set(FilePath(g_executable_path));
384#endif // GTEST_OS_WINDOWS
385
386 return result.RemoveDirectoryName();
387}
388
389// Functions for processing the gtest_output flag.
390

Callers 4

TESTFunction · 0.50
TEST_FFunction · 0.50
SetUpMethod · 0.50

Calls 4

SetMethod · 0.80
FilePathFunction · 0.50
RemoveExtensionMethod · 0.45
RemoveDirectoryNameMethod · 0.45

Tested by

no test coverage detected