|
void | cuttlefish::CreateTempFileWithText (const std::string &filepath, const std::string &text) |
|
| cuttlefish::TEST_F (FilesTests, HardLinkRecursivelyFailsIfSourceIsNotADirectory) |
|
| cuttlefish::TEST_F (FilesTests, HardLinkRecursively) |
|
| cuttlefish::TEST_F (FilesTests, MoveDirectoryContentsFailsIfSourceIsNotADirectory) |
|
| cuttlefish::TEST_F (FilesTests, MoveDirectoryContents) |
|
| cuttlefish::TEST_P (EmulateAbsolutePathBase, NoHomeNoPwd) |
|
| cuttlefish::INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathBase, testing::Values(InputOutput{.path_to_convert_="/",.expected_="/"}, InputOutput{.path_to_convert_="",.expected_=""}, InputOutput{.path_to_convert_="/a/b/c/",.expected_="/a/b/c"}, InputOutput{.path_to_convert_="/a",.expected_="/a"})) |
|
| cuttlefish::TEST_P (EmulateAbsolutePathWithPwd, NoHomeYesPwd) |
|
| cuttlefish::INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathWithPwd, testing::Values(InputOutput{.path_to_convert_="",.working_dir_="/x/y/z",.expected_=""}, InputOutput{.path_to_convert_="a",.working_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_=".",.working_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="..",.working_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="./k/../../t/./q",.working_dir_="/x/y/z",.expected_="/x/y/t/q"})) |
|
| cuttlefish::TEST_P (EmulateAbsolutePathWithHome, YesHomeNoPwd) |
|
| cuttlefish::INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathWithHome, testing::Values(InputOutput{.path_to_convert_="~",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/a",.home_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_="~/.",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/..",.home_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="~/k/../../t/./q",.home_dir_="/x/y/z",.expected_="/x/y/t/q"})) |
|