Home | History | Annotate | Download | only in test

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) {
160 TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) {
166 TEST(RemoveDirectoryNameTest, WhereThereIsNoFileNameForAlternateSeparator) {
172 TEST(RemoveDirectoryNameTest, ShouldGiveFileNameForAlternateSeparator) {
178 TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileNameForAlternateSeparator) {
186 TEST(RemoveFileNameTest, EmptyName) {
198 TEST(RemoveFileNameTest, ButNoFile) {
204 TEST(RemoveFileNameTest, GivesDirName) {
211 TEST(RemoveFileNameTest, GivesDirAndSubDirName) {
218 TEST(RemoveFileNameTest, GivesRootDir) {
229 TEST(RemoveFileNameTest, ButNoFileForAlternateSeparator) {
235 TEST(RemoveFileNameTest, GivesDirNameForAlternateSeparator) {
241 TEST(RemoveFileNameTest, GivesDirAndSubDirNameForAlternateSeparator) {
247 TEST(RemoveFileNameTest, GivesRootDirForAlternateSeparator) {
254 TEST(MakeFileNameTest, GenerateWhenNumberIsZero) {
260 TEST(MakeFileNameTest, GenerateFileNameNumberGtZero) {
266 TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberIsZero) {
272 TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberGtZero) {
278 TEST(MakeFileNameTest, GenerateWhenNumberIsZeroAndDirIsEmpty) {
284 TEST(MakeFileNameTest, GenerateWhenNumberIsNotZeroAndDirIsEmpty) {
290 TEST(ConcatPathsTest, WorksWhenDirDoesNotEndWithPathSep) {
296 TEST(ConcatPathsTest, WorksWhenPath1EndsWithPathSep) {
302 TEST(ConcatPathsTest, Path1BeingEmpty) {
308 TEST(ConcatPathsTest, Path2BeingEmpty) {
314 TEST(ConcatPathsTest, BothPathBeingEmpty) {
320 TEST(ConcatPathsTest, Path1ContainsPathSep) {
327 TEST(ConcatPathsTest, Path2ContainsPathSep) {
335 TEST(ConcatPathsTest, Path2EndsWithPathSep) {
342 TEST(RemoveTrailingPathSeparatorTest, EmptyString) {
348 TEST(RemoveTrailingPathSeparatorTest, FileNoSlashString) {
354 TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveTrailingSeparator) {
365 TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveLastSeparator) {
372 TEST(RemoveTrailingPathSeparatorTest, ShouldReturnUnmodified) {
378 TEST(DirectoryTest, RootDirectoryExists) {
392 TEST(DirectoryTest, RootOfWrongDriveDoesNotExists) {
411 TEST(DirectoryTest, EmptyPathDirectoryDoesNotExist) {
416 TEST(DirectoryTest, CurrentDirectoryExists) {
428 TEST(NormalizeTest, NullStringsEqualEmptyDirectory) {
434 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsInMidstring) {
445 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringStart) {
455 TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringEnd) {
469 TEST(NormalizeTest, MixAlternateSeparatorAtStringEnd) {
480 TEST(AssignmentOperatorTest, DefaultAssignedToNonDefault) {
488 TEST(AssignmentOperatorTest, NonDefaultAssignedToDefault) {
496 TEST(AssignmentOperatorTest, ConstAssignedToNonConst) {
503 class DirectoryCreationTest : public Test {
508 "_directory_creation" GTEST_PATH_SEP_ "test" GTEST_PATH_SEP_)));
553 // a directory named 'test' from a file named 'test'. Example names:
554 FilePath testdata_path_; // "/tmp/directory_creation/test/"
555 FilePath testdata_file_; // "/tmp/directory_creation/test"
556 FilePath unique_file0_; // "/tmp/directory_creation/test/unique.txt"
557 FilePath unique_file1_; // "/tmp/directory_creation/test/unique_1.txt"
600 TEST(NoDirectoryCreationTest, CreateNoDirectoriesForDefaultXmlFile) {
605 TEST(FilePathTest, DefaultConstructor) {
610 TEST(FilePathTest, CharAndCopyConstructors) {
618 TEST(FilePathTest, StringConstructor) {
623 TEST(FilePathTest, Set) {
631 TEST(FilePathTest, ToString) {
637 TEST(FilePathTest, RemoveExtension) {
642 TEST(FilePathTest, RemoveExtensionWhenThereIsNoExtension) {
646 TEST(FilePathTest, IsDirectory) {
654 TEST(FilePathTest, IsAbsolutePath) {
669 TEST(FilePathTest, IsRootDirectory) {