Lines Matching refs:GuessPathStyle
194 TEST(FileSpecTest, GuessPathStyle) { in TEST() argument
195 EXPECT_EQ(FileSpec::Style::posix, FileSpec::GuessPathStyle("/foo/bar.txt")); in TEST()
196 EXPECT_EQ(FileSpec::Style::posix, FileSpec::GuessPathStyle("//net/bar.txt")); in TEST()
198 FileSpec::GuessPathStyle(R"(C:\foo.txt)")); in TEST()
200 FileSpec::GuessPathStyle(R"(C:/foo.txt)")); in TEST()
202 FileSpec::GuessPathStyle(R"(\\net\foo.txt)")); in TEST()
203 EXPECT_EQ(FileSpec::Style::windows, FileSpec::GuessPathStyle(R"(Z:\)")); in TEST()
204 EXPECT_EQ(FileSpec::Style::windows, FileSpec::GuessPathStyle(R"(Z:/)")); in TEST()
205 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo.txt")); in TEST()
206 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("foo/bar.txt")); in TEST()
207 EXPECT_EQ(llvm::None, FileSpec::GuessPathStyle("Z:")); in TEST()