MCPcopy Create free account
hub / github.com/apache/singa / GetCurrentExecutableName

Function GetCurrentExecutableName

test/gtest/gtest-all.cc:1861–1871  ·  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

1859// Returns the current application's name, removing directory path if that
1860// is present.
1861FilePath GetCurrentExecutableName() {
1862 FilePath result;
1863
1864#if GTEST_OS_WINDOWS
1865 result.Set(FilePath(g_executable_path).RemoveExtension("exe"));
1866#else
1867 result.Set(FilePath(g_executable_path));
1868#endif // GTEST_OS_WINDOWS
1869
1870 return result.RemoveDirectoryName();
1871}
1872
1873// Functions for processing the gtest_output flag.
1874

Callers 1

Calls 3

FilePathFunction · 0.85
RemoveExtensionMethod · 0.80
RemoveDirectoryNameMethod · 0.80

Tested by

no test coverage detected