MADNESS
version 0.9
|
#include <gtest-filepath.h>
Public Member Functions | |
FilePath () | |
FilePath (const FilePath &rhs) | |
FilePath (const std::string &pathname) | |
FilePath & | operator= (const FilePath &rhs) |
void | Set (const FilePath &rhs) |
const std::string & | string () const |
const char * | c_str () const |
bool | IsEmpty () const |
FilePath | RemoveTrailingPathSeparator () const |
FilePath | RemoveDirectoryName () const |
FilePath | RemoveFileName () const |
FilePath | RemoveExtension (const char *extension) const |
bool | CreateDirectoriesRecursively () const |
bool | CreateFolder () const |
bool | FileOrDirectoryExists () const |
bool | DirectoryExists () const |
bool | IsDirectory () const |
bool | IsRootDirectory () const |
bool | IsAbsolutePath () const |
Static Public Member Functions | |
static FilePath | GetCurrentDir () |
static FilePath | MakeFileName (const FilePath &directory, const FilePath &base_name, int number, const char *extension) |
static FilePath | ConcatPaths (const FilePath &directory, const FilePath &relative_path) |
static FilePath | GenerateUniqueFileName (const FilePath &directory, const FilePath &base_name, const char *extension) |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
Referenced by CreateFolder(), DirectoryExists(), testing::UnitTest::original_working_dir(), and RemoveFileName().
|
static |
References FilePath(), IsEmpty(), RemoveTrailingPathSeparator(), and string().
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and MakeFileName().
bool testing::internal::FilePath::CreateDirectoriesRecursively | ( | ) | const |
References CreateDirectoriesRecursively(), CreateFolder(), DirectoryExists(), IsDirectory(), RemoveFileName(), and RemoveTrailingPathSeparator().
Referenced by CreateDirectoriesRecursively().
bool testing::internal::FilePath::CreateFolder | ( | ) | const |
References c_str(), DirectoryExists(), and RemoveTrailingPathSeparator().
Referenced by CreateDirectoriesRecursively().
bool testing::internal::FilePath::DirectoryExists | ( | ) | const |
References c_str(), testing::internal::posix::IsDir(), IsRootDirectory(), RemoveTrailingPathSeparator(), and testing::internal::posix::Stat().
Referenced by CreateDirectoriesRecursively(), and CreateFolder().
bool testing::internal::FilePath::FileOrDirectoryExists | ( | ) | const |
References testing::internal::posix::Stat().
Referenced by GenerateUniqueFileName().
|
static |
References FileOrDirectoryExists(), MakeFileName(), and Set().
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile().
|
static |
References FilePath(), and GTEST_PATH_MAX_.
Referenced by testing::internal::UnitTestImpl::AddTestInfo().
bool testing::internal::FilePath::IsAbsolutePath | ( | ) | const |
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and IsRootDirectory().
bool testing::internal::FilePath::IsDirectory | ( | ) | const |
|
inline |
Referenced by ConcatPaths().
bool testing::internal::FilePath::IsRootDirectory | ( | ) | const |
References IsAbsolutePath().
Referenced by DirectoryExists().
|
static |
References ConcatPaths(), FilePath(), testing::internal::StreamableToString(), and string().
Referenced by GenerateUniqueFileName().
FilePath testing::internal::FilePath::RemoveDirectoryName | ( | ) | const |
References FilePath().
Referenced by testing::internal::GetCurrentExecutableName().
FilePath testing::internal::FilePath::RemoveExtension | ( | const char * | extension | ) | const |
References testing::internal::String::EndsWithCaseInsensitive(), and FilePath().
FilePath testing::internal::FilePath::RemoveFileName | ( | ) | const |
References c_str(), FilePath(), and testing::internal::kCurrentDirectoryString.
Referenced by CreateDirectoriesRecursively().
FilePath testing::internal::FilePath::RemoveTrailingPathSeparator | ( | ) | const |
References FilePath(), and IsDirectory().
Referenced by ConcatPaths(), CreateDirectoriesRecursively(), CreateFolder(), and DirectoryExists().
|
inline |
Referenced by GenerateUniqueFileName(), and testing::internal::GetCurrentExecutableName().
|
inline |
Referenced by ConcatPaths(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and MakeFileName().