| 760 | |
| 761 | #if SC_PLATFORM_WINDOWS |
| 762 | void SC::FileSystemTest::prefixedPathInput() |
| 763 | { |
| 764 | FileSystem fs; |
| 765 | SC_TEST_EXPECT(fs.init(report.applicationRootDirectory.view())); |
| 766 | |
| 767 | StringPath prefixedFilePath; |
| 768 | SC_TEST_EXPECT(prefixedFilePath.assign("\\\\?\\"_a8)); |
| 769 | SC_TEST_EXPECT(prefixedFilePath.append(report.applicationRootDirectory.view())); |
| 770 | SC_TEST_EXPECT(prefixedFilePath.append("\\prefixed-path-input.txt"_a8)); |
| 771 | |
| 772 | SC_TEST_EXPECT(fs.writeString(prefixedFilePath.view(), "prefixed")); |
| 773 | SC_TEST_EXPECT(fs.exists(prefixedFilePath.view())); |
| 774 | |
| 775 | String content = StringEncoding::Ascii; |
| 776 | SC_TEST_EXPECT(fs.read(prefixedFilePath.view(), content)); |
| 777 | SC_TEST_EXPECT(content.view() == "prefixed"); |
| 778 | SC_TEST_EXPECT(fs.removeFile(prefixedFilePath.view())); |
| 779 | } |
| 780 | |
| 781 | void SC::FileSystemTest::windowsLongPathHelper() |
| 782 | { |
nothing calls this directly
no test coverage detected