MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / GetCurrentExecutableName

Function GetCurrentExecutableName

test/common/gtest/gtest.cpp:1881–1891  ·  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

1879// Returns the current application's name, removing directory path if that
1880// is present.
1881FilePath GetCurrentExecutableName() {
1882 FilePath result;
1883
1884#if GTEST_OS_WINDOWS
1885 result.Set(FilePath(g_executable_path).RemoveExtension("exe"));
1886#else
1887 result.Set(FilePath(g_executable_path));
1888#endif // GTEST_OS_WINDOWS
1889
1890 return result.RemoveDirectoryName();
1891}
1892
1893// Functions for processing the gtest_output flag.
1894

Callers 1

Calls 3

FilePathFunction · 0.85
RemoveExtensionMethod · 0.80
RemoveDirectoryNameMethod · 0.80

Tested by

no test coverage detected