Lines Matching refs:TEST
32 // Google Test filepath utilities
35 // Google Test. They are subject to change without notice.
38 // build or make-files for some existing Google Test clients. Do not
44 // Indicates that this translation unit is part of Google Test's
86 TEST(GetCurrentDirTest, ReturnsCurrentDir) {
106 TEST(IsEmptyTest, ReturnsTrueForEmptyPath) {
111 TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) {
119 TEST(RemoveDirectoryNameTest, WhenEmptyName) {
124 TEST(RemoveDirectoryNameTest, ButNoDirectory) {
130 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) {
136 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) {
142 TEST(RemoveDirectoryNameTest, ShouldGiveFileName) {
148 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) {
156 TEST(RemoveFileNameTest, EmptyName) {
168 TEST(RemoveFileNameTest, ButNoFile) {
174 TEST(RemoveFileNameTest, GivesDirName) {
181 TEST(RemoveFileNameTest, GivesDirAndSubDirName) {
188 TEST(RemoveFileNameTest, GivesRootDir) {
194 TEST(MakeFileNameTest, GenerateWhenNumberIsZero) {
200 TEST(MakeFileNameTest, GenerateFileNameNumberGtZero) {
206 TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberIsZero) {
212 TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberGtZero) {
218 TEST(MakeFileNameTest, GenerateWhenNumberIsZeroAndDirIsEmpty) {
224 TEST(MakeFileNameTest, GenerateWhenNumberIsNotZeroAndDirIsEmpty) {
230 TEST(ConcatPathsTest, WorksWhenDirDoesNotEndWithPathSep) {
236 TEST(ConcatPathsTest, WorksWhenPath1EndsWithPathSep) {
242 TEST(ConcatPathsTest, Path1BeingEmpty) {
248 TEST(ConcatPathsTest, Path2BeingEmpty) {
254 TEST(ConcatPathsTest, BothPathBeingEmpty) {
260 TEST(ConcatPathsTest, Path1ContainsPathSep) {
267 TEST(ConcatPathsTest, Path2ContainsPathSep) {
275 TEST(ConcatPathsTest, Path2EndsWithPathSep) {
282 TEST(RemoveTrailingPathSeparatorTest, EmptyString) {
288 TEST(RemoveTrailingPathSeparatorTest, FileNoSlashString) {
294 TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveTrailingSeparator) {
301 TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveLastSeparator) {
308 TEST(RemoveTrailingPathSeparatorTest, ShouldReturnUnmodified) {
314 TEST(DirectoryTest, RootDirectoryExists) {
328 TEST(DirectoryTest, RootOfWrongDriveDoesNotExists) {
347 TEST(DirectoryTest, EmptyPathDirectoryDoesNotExist) {
352 TEST(DirectoryTest, CurrentDirectoryExists) {
364 TEST(NormalizeTest, NullStringsEqualEmptyDirectory) {
370 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsInMidstring) {
381 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringStart) {
391 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringEnd) {
400 TEST(AssignmentOperatorTest, DefaultAssignedToNonDefault) {
408 TEST(AssignmentOperatorTest, NonDefaultAssignedToDefault) {
416 TEST(AssignmentOperatorTest, ConstAssignedToNonConst) {
423 class DirectoryCreationTest : public Test {
428 "_directory_creation" GTEST_PATH_SEP_ "test" GTEST_PATH_SEP_)));
473 // a directory named 'test' from a file named 'test'. Example names:
474 FilePath testdata_path_; // "/tmp/directory_creation/test/"
475 FilePath testdata_file_; // "/tmp/directory_creation/test"
476 FilePath unique_file0_; // "/tmp/directory_creation/test/unique.txt"
477 FilePath unique_file1_; // "/tmp/directory_creation/test/unique_1.txt"
520 TEST(NoDirectoryCreationTest, CreateNoDirectoriesForDefaultXmlFile) {
525 TEST(FilePathTest, DefaultConstructor) {
530 TEST(FilePathTest, CharAndCopyConstructors) {
538 TEST(FilePathTest, StringConstructor) {
543 TEST(FilePathTest, Set) {
551 TEST(FilePathTest, ToString) {
557 TEST(FilePathTest, RemoveExtension) {
562 TEST(FilePathTest, RemoveExtensionWhenThereIsNoExtension) {
566 TEST(FilePathTest, IsDirectory) {
571 TEST(FilePathTest, IsAbsolutePath) {