MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetCurrentExecutableName

Function GetCurrentExecutableName

tests/gtest/gtest-all.cc:1909–1919  ·  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

1907// Returns the current application's name, removing directory path if that
1908// is present.
1909FilePath GetCurrentExecutableName() {
1910 FilePath result;
1911
1912#if GTEST_OS_WINDOWS || GTEST_OS_OS2
1913 result.Set(FilePath(GetArgvs()[0]).RemoveExtension("exe"));
1914#else
1915 result.Set(FilePath(GetArgvs()[0]));
1916#endif // GTEST_OS_WINDOWS
1917
1918 return result.RemoveDirectoryName();
1919}
1920
1921// Functions for processing the gtest_output flag.
1922

Callers 1

Calls 4

FilePathFunction · 0.85
GetArgvsFunction · 0.85
RemoveExtensionMethod · 0.80
RemoveDirectoryNameMethod · 0.80

Tested by

no test coverage detected