MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / prefixedPathInput

Method prefixedPathInput

Tests/Libraries/FileSystem/FileSystemTest.cpp:762–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760
761#if SC_PLATFORM_WINDOWS
762void 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
781void SC::FileSystemTest::windowsLongPathHelper()
782{

Callers

nothing calls this directly

Calls 8

existsMethod · 0.80
initMethod · 0.45
viewMethod · 0.45
assignMethod · 0.45
appendMethod · 0.45
writeStringMethod · 0.45
readMethod · 0.45
removeFileMethod · 0.45

Tested by

no test coverage detected