More rework to switch to std::filesystem::path over cstrings
This commit is contained in:
@@ -30,7 +30,7 @@ namespace
|
||||
|
||||
void makeDummyArchive()
|
||||
{
|
||||
ArchiveWriter writer(dummyArchivePath().c_str());
|
||||
ArchiveWriter writer(dummyArchivePath());
|
||||
FileDescription desc;
|
||||
|
||||
desc.path = "stream1.txt";
|
||||
@@ -70,7 +70,7 @@ TEST_CASE("Dummy archive creation, default constructor", "[ArchiveReader]")
|
||||
TEST_CASE("Open Archive from File", "[ArchiveReader]")
|
||||
{
|
||||
{
|
||||
std::string testArchive = dummyArchivePath();
|
||||
auto testArchive = dummyArchivePath();
|
||||
ArchiveReader reader;
|
||||
bool opened = reader.Open(testArchive);
|
||||
REQUIRE(opened == true);
|
||||
@@ -112,7 +112,7 @@ TEST_CASE("Open Archive from Directory with Pattern", "[ArchiveReader]")
|
||||
|
||||
TEST_CASE("ExtractNext and Skip Functions", "[ArchiveReader]")
|
||||
{
|
||||
std::string testArchive = dummyArchivePath();
|
||||
auto testArchive = dummyArchivePath();
|
||||
ArchiveReader reader(testArchive);
|
||||
|
||||
size_t extractedFiles = reader.ExtractRemaining(dummyArchiveDir());
|
||||
@@ -127,7 +127,7 @@ TEST_CASE("ExtractNext and Skip Functions", "[ArchiveReader]")
|
||||
|
||||
TEST_CASE("Get Next File Operations", "[ArchiveReader]")
|
||||
{
|
||||
std::string testArchive = dummyArchivePath();
|
||||
auto testArchive = dummyArchivePath();
|
||||
|
||||
ArchiveReader reader(testArchive);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user