MCPcopy Create free account
hub / github.com/BVLC/caffe / GetCurrentExecutableName

Function GetCurrentExecutableName

src/gtest/gtest-all.cpp:1673–1683  ·  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

1671// Returns the current application's name, removing directory path if that
1672// is present.
1673FilePath GetCurrentExecutableName() {
1674 FilePath result;
1675
1676#if GTEST_OS_WINDOWS
1677 result.Set(FilePath(g_executable_path).RemoveExtension("exe"));
1678#else
1679 result.Set(FilePath(g_executable_path));
1680#endif // GTEST_OS_WINDOWS
1681
1682 return result.RemoveDirectoryName();
1683}
1684
1685// Functions for processing the gtest_output flag.
1686

Callers 1

Calls 3

FilePathFunction · 0.85
RemoveExtensionMethod · 0.80
RemoveDirectoryNameMethod · 0.80

Tested by

no test coverage detected