Lines Matching refs:Path

44         ASSERT_EQUALS("index.cpp", Path::removeQuotationMarks("index.cpp"));  in removeQuotationMarks()
45 ASSERT_EQUALS("index.cpp", Path::removeQuotationMarks("\"index.cpp")); in removeQuotationMarks()
46 ASSERT_EQUALS("index.cpp", Path::removeQuotationMarks("index.cpp\"")); in removeQuotationMarks()
47 ASSERT_EQUALS("index.cpp", Path::removeQuotationMarks("\"index.cpp\"")); in removeQuotationMarks()
48 ASSERT_EQUALS("path to/index.cpp", Path::removeQuotationMarks("\"path to\"/index.cpp")); in removeQuotationMarks()
49 ASSERT_EQUALS("path to/index.cpp", Path::removeQuotationMarks("\"path to/index.cpp\"")); in removeQuotationMarks()
50 … ASSERT_EQUALS("the/path to/index.cpp", Path::removeQuotationMarks("the/\"path to\"/index.cpp")); in removeQuotationMarks()
51 … ASSERT_EQUALS("the/path to/index.cpp", Path::removeQuotationMarks("\"the/path to/index.cpp\"")); in removeQuotationMarks()
55 ASSERT(Path::acceptFile("index.cpp")); in acceptFile()
56 ASSERT(Path::acceptFile("index.invalid.cpp")); in acceptFile()
57 ASSERT(Path::acceptFile("index.invalid.Cpp")); in acceptFile()
58 ASSERT(Path::acceptFile("index.invalid.C")); in acceptFile()
59 ASSERT(Path::acceptFile("index.invalid.C++")); in acceptFile()
60 ASSERT(Path::acceptFile("index.")==false); in acceptFile()
61 ASSERT(Path::acceptFile("index")==false); in acceptFile()
62 ASSERT(Path::acceptFile("")==false); in acceptFile()
63 ASSERT(Path::acceptFile("C")==false); in acceptFile()
66 ASSERT_EQUALS(false, Path::acceptFile("index.h")); in acceptFile()
67 ASSERT_EQUALS(false, Path::acceptFile("index.hpp")); in acceptFile()
71 ASSERT_EQUALS(true, Path::isAbsolute(Path::getCurrentPath())); in getCurrentPath()
76 ASSERT_EQUALS(true, Path::isAbsolute("C:\\foo\\bar")); in isAbsolute()
77 ASSERT_EQUALS(true, Path::isAbsolute("C:/foo/bar")); in isAbsolute()
78 ASSERT_EQUALS(true, Path::isAbsolute("\\\\foo\\bar")); in isAbsolute()
79 ASSERT_EQUALS(false, Path::isAbsolute("foo\\bar")); in isAbsolute()
80 ASSERT_EQUALS(false, Path::isAbsolute("foo/bar")); in isAbsolute()
81 ASSERT_EQUALS(false, Path::isAbsolute("foo.cpp")); in isAbsolute()
82 ASSERT_EQUALS(false, Path::isAbsolute("C:foo.cpp")); in isAbsolute()
83 ASSERT_EQUALS(false, Path::isAbsolute("C:foo\\bar.cpp")); in isAbsolute()
84 ASSERT_EQUALS(false, Path::isAbsolute("bar.cpp")); in isAbsolute()
85 TODO_ASSERT_EQUALS(true, false, Path::isAbsolute("\\")); in isAbsolute()
87 ASSERT_EQUALS(true, Path::isAbsolute("/foo/bar")); in isAbsolute()
88 ASSERT_EQUALS(true, Path::isAbsolute("/")); in isAbsolute()
89 ASSERT_EQUALS(false, Path::isAbsolute("foo/bar")); in isAbsolute()
90 ASSERT_EQUALS(false, Path::isAbsolute("foo.cpp")); in isAbsolute()
102 ASSERT_EQUALS("x.c", Path::getRelativePath("C:/foo/x.c", basePaths)); in getRelative()
103 ASSERT_EQUALS("y.c", Path::getRelativePath("C:/bar/y.c", basePaths)); in getRelative()
104 ASSERT_EQUALS("foo/y.c", Path::getRelativePath("C:/bar/foo/y.c", basePaths)); in getRelative()
105 ASSERT_EQUALS("C:/test.cpp", Path::getRelativePath("C:/test.cpp", basePaths)); in getRelative()
106 ASSERT_EQUALS("C:/foobar/test.cpp", Path::getRelativePath("C:/foobar/test.cpp", basePaths)); in getRelative()
110 ASSERT(Path::isC("index.cpp")==false); in is_c()
111 ASSERT(Path::isC("")==false); in is_c()
112 ASSERT(Path::isC("c")==false); in is_c()
113 ASSERT(Path::isC("index.c")); in is_c()
114 ASSERT(Path::isC("C:\\foo\\index.c")); in is_c()
118 ASSERT_EQUALS(true, Path::isC("C:\\foo\\index.C")); in is_c()
120 ASSERT_EQUALS(false, Path::isC("C:\\foo\\index.C")); in is_c()
125 ASSERT(Path::isCPP("index.c")==false); in is_cpp()
129 ASSERT_EQUALS(false, Path::isCPP("index.C")); in is_cpp()
131 ASSERT_EQUALS(true, Path::isCPP("index.C")); in is_cpp()
133 ASSERT(Path::isCPP("index.cpp")); in is_cpp()
134 ASSERT(Path::isCPP("C:\\foo\\index.cpp")); in is_cpp()
135 ASSERT(Path::isCPP("C:\\foo\\index.Cpp")); in is_cpp()
139 ASSERT_EQUALS("", Path::getPathFromFilename("index.h")); in get_path_from_filename()
140 ASSERT_EQUALS("/tmp/", Path::getPathFromFilename("/tmp/index.h")); in get_path_from_filename()
141 ASSERT_EQUALS("a/b/c/", Path::getPathFromFilename("a/b/c/index.h")); in get_path_from_filename()
142 ASSERT_EQUALS("a/b/c/", Path::getPathFromFilename("a/b/c/")); in get_path_from_filename()