reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Support/VirtualFileSystemTest.cpp
 1006   ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer());
 1007   File = FS.openFileForRead("/a"); // Open again.
 1008   ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer());
 1009   File = NormalizedFS.openFileForRead("/././a"); // Open again.
 1010   ASSERT_EQ("a", (*(*File)->getBuffer("ignored"))->getBuffer());
 1011   File = FS.openFileForRead("/");
 1012   ASSERT_EQ(File.getError(), errc::invalid_argument) << FS.toString();
 1013   File = FS.openFileForRead("/b");
 1014   ASSERT_EQ(File.getError(), errc::no_such_file_or_directory) << FS.toString();
 1015   File = FS.openFileForRead("./c");
 1016   ASSERT_FALSE(File);
 1017   File = FS.openFileForRead("e/../d");
 1018   ASSERT_FALSE(File);
 1019   File = NormalizedFS.openFileForRead("./c");
 1020   ASSERT_EQ("c", (*(*File)->getBuffer("ignored"))->getBuffer());
 1021   File = NormalizedFS.openFileForRead("e/../d");
 1022   ASSERT_EQ("d", (*(*File)->getBuffer("ignored"))->getBuffer());