Lines Matching refs:FS
286 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() local
289 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
298 I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
313 IntrusiveRefCntPtr<vfs::FileSystem> FS = vfs::getRealFileSystem(); in TEST() local
316 auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC); in TEST()
325 I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC); in TEST()
549 IntrusiveRefCntPtr<vfs::FileSystem> FS; in TEST_F() local
550 FS = getFromYAMLString(""); in TEST_F()
551 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
552 FS = getFromYAMLString("[]"); in TEST_F()
553 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
554 FS = getFromYAMLString("'string'"); in TEST_F()
555 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
562 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F() local
582 ASSERT_TRUE(FS.get() != nullptr); in TEST_F()
586 O->pushOverlay(FS); in TEST_F()
612 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F() local
626 ASSERT_TRUE(FS.get() != nullptr); in TEST_F()
630 O->pushOverlay(FS); in TEST_F()
648 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F() local
662 ASSERT_TRUE(FS.get() != nullptr); in TEST_F()
666 O->pushOverlay(FS); in TEST_F()
681 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString("{]", Lower); in TEST_F() local
682 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
684 FS = getFromYAMLString("{ 'roots':[}", Lower); in TEST_F()
686 FS = getFromYAMLString( in TEST_F()
689 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
692 FS = getFromYAMLString("{ 'knobular': 'true', 'roots':[] }", Lower); in TEST_F()
693 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
694 FS = getFromYAMLString("{ 'case-sensitive': 'maybe', 'roots':[] }", Lower); in TEST_F()
695 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
698 FS = getFromYAMLString("{ 'roots':'' }", Lower); in TEST_F()
699 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
700 FS = getFromYAMLString("{ 'roots':{} }", Lower); in TEST_F()
701 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
704 FS = getFromYAMLString( in TEST_F()
706 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
707 FS = getFromYAMLString("{ 'roots':[ { 'type': 'file', 'name': [], " in TEST_F()
710 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
711 FS = getFromYAMLString( in TEST_F()
714 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
715 FS = getFromYAMLString( in TEST_F()
718 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
719 FS = getFromYAMLString( in TEST_F()
722 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
723 FS = getFromYAMLString( in TEST_F()
726 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
727 FS = getFromYAMLString( in TEST_F()
730 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
733 FS = getFromYAMLString("{ 'roots':[ { 'type': 'file', 'name': 'me' }", Lower); in TEST_F()
734 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
735 FS = getFromYAMLString( in TEST_F()
737 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
738 FS = getFromYAMLString("{ 'roots':[ { 'name': 'me', 'contents': [] }", Lower); in TEST_F()
739 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
742 FS = getFromYAMLString("{ 'roots':[], 'roots':[] }", Lower); in TEST_F()
743 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
744 FS = getFromYAMLString( in TEST_F()
747 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
748 FS = in TEST_F()
752 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
755 FS = getFromYAMLRawString("{ 'roots':[] }", Lower); in TEST_F()
756 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
759 FS = getFromYAMLRawString("{ 'version':'foo', 'roots':[] }", Lower); in TEST_F()
760 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
761 FS = getFromYAMLRawString("{ 'version':-1, 'roots':[] }", Lower); in TEST_F()
762 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
763 FS = getFromYAMLRawString("{ 'version':100000, 'roots':[] }", Lower); in TEST_F()
764 EXPECT_EQ(nullptr, FS.get()); in TEST_F()
772 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F() local
786 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
789 EXPECT_EQ("//root/external/file", FS->status("//root/A")->getName()); in TEST_F()
791 EXPECT_EQ("//root/external/file", FS->status("//root/B")->getName()); in TEST_F()
792 EXPECT_EQ("//root/C", FS->status("//root/C")->getName()); in TEST_F()
795 FS = getFromYAMLString( in TEST_F()
810 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
813 EXPECT_EQ("//root/A", FS->status("//root/A")->getName()); in TEST_F()
815 EXPECT_EQ("//root/external/file", FS->status("//root/B")->getName()); in TEST_F()
816 EXPECT_EQ("//root/C", FS->status("//root/C")->getName()); in TEST_F()
824 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F() local
829 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
830 EXPECT_FALSE(FS->status("//root/path/to/file").getError()); in TEST_F()
831 EXPECT_FALSE(FS->status("//root/path/to").getError()); in TEST_F()
832 EXPECT_FALSE(FS->status("//root/path").getError()); in TEST_F()
833 EXPECT_FALSE(FS->status("//root/").getError()); in TEST_F()
836 FS = getFromYAMLString( in TEST_F()
842 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
843 EXPECT_FALSE(FS->status("//root/path/to/file").getError()); in TEST_F()
844 EXPECT_FALSE(FS->status("//root/path/to").getError()); in TEST_F()
845 EXPECT_FALSE(FS->status("//root/path").getError()); in TEST_F()
846 EXPECT_FALSE(FS->status("//root/").getError()); in TEST_F()
849 FS = getFromYAMLString( in TEST_F()
855 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
856 EXPECT_FALSE(FS->status("//root/path/to/file").getError()); in TEST_F()
857 EXPECT_FALSE(FS->status("//root/path/to").getError()); in TEST_F()
858 EXPECT_FALSE(FS->status("//root/path").getError()); in TEST_F()
859 EXPECT_FALSE(FS->status("//root/").getError()); in TEST_F()
867 IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLString( in TEST_F() local
873 ASSERT_TRUE(nullptr != FS.get()); in TEST_F()
874 EXPECT_FALSE(FS->status("//root/path/to/file").getError()); in TEST_F()
875 EXPECT_FALSE(FS->status("//root/path/to").getError()); in TEST_F()
876 EXPECT_FALSE(FS->status("//root/path").getError()); in TEST_F()
877 EXPECT_FALSE(FS->status("//root/").getError()); in TEST_F()
888 IntrusiveRefCntPtr<vfs::FileSystem> FS = in TEST_F() local
909 ASSERT_TRUE(FS.get() != NULL); in TEST_F()
913 O->pushOverlay(FS); in TEST_F()