From ccb956a834f2f4423202bf2de75fe1ab38d437cf Mon Sep 17 00:00:00 2001 From: njohnson Date: Mon, 15 Sep 2025 18:49:25 -0400 Subject: [PATCH] Refactor: Replace hardcoded file paths with fastFilePath in testFactory() methods. --- tests/PC/autotest_cod10_pc.cpp | 2 +- tests/PC/autotest_cod11_pc.cpp | 2 +- tests/PC/autotest_cod12_pc.cpp | 2 +- tests/PC/autotest_cod4_pc.cpp | 2 +- tests/PC/autotest_cod5_pc.cpp | 2 +- tests/PC/autotest_cod6_pc.cpp | 2 +- tests/PC/autotest_cod7_pc.cpp | 2 +- tests/PC/autotest_cod8_pc.cpp | 2 +- tests/PC/autotest_cod9_pc.cpp | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/PC/autotest_cod10_pc.cpp b/tests/PC/autotest_cod10_pc.cpp index c95979e..2eff478 100644 --- a/tests/PC/autotest_cod10_pc.cpp +++ b/tests/PC/autotest_cod10_pc.cpp @@ -116,7 +116,7 @@ void AutoTest_COD10_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD10"; diff --git a/tests/PC/autotest_cod11_pc.cpp b/tests/PC/autotest_cod11_pc.cpp index aa9fa49..6810e54 100644 --- a/tests/PC/autotest_cod11_pc.cpp +++ b/tests/PC/autotest_cod11_pc.cpp @@ -116,7 +116,7 @@ void AutoTest_COD11_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD11"; diff --git a/tests/PC/autotest_cod12_pc.cpp b/tests/PC/autotest_cod12_pc.cpp index 51f7415..b5619ad 100644 --- a/tests/PC/autotest_cod12_pc.cpp +++ b/tests/PC/autotest_cod12_pc.cpp @@ -209,7 +209,7 @@ void AutoTest_COD12_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD12"; diff --git a/tests/PC/autotest_cod4_pc.cpp b/tests/PC/autotest_cod4_pc.cpp index 2089d56..3d3b084 100644 --- a/tests/PC/autotest_cod4_pc.cpp +++ b/tests/PC/autotest_cod4_pc.cpp @@ -113,7 +113,7 @@ void AutoTest_COD4_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD4"; diff --git a/tests/PC/autotest_cod5_pc.cpp b/tests/PC/autotest_cod5_pc.cpp index e34bb41..996a912 100644 --- a/tests/PC/autotest_cod5_pc.cpp +++ b/tests/PC/autotest_cod5_pc.cpp @@ -117,7 +117,7 @@ void AutoTest_COD5_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD5"; diff --git a/tests/PC/autotest_cod6_pc.cpp b/tests/PC/autotest_cod6_pc.cpp index a714279..2af00c2 100644 --- a/tests/PC/autotest_cod6_pc.cpp +++ b/tests/PC/autotest_cod6_pc.cpp @@ -109,7 +109,7 @@ void AutoTest_COD6_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD6"; diff --git a/tests/PC/autotest_cod7_pc.cpp b/tests/PC/autotest_cod7_pc.cpp index e0bb53c..c2ee5bc 100644 --- a/tests/PC/autotest_cod7_pc.cpp +++ b/tests/PC/autotest_cod7_pc.cpp @@ -116,7 +116,7 @@ void AutoTest_COD7_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD7"; diff --git a/tests/PC/autotest_cod8_pc.cpp b/tests/PC/autotest_cod8_pc.cpp index bffd7d5..1bfc972 100644 --- a/tests/PC/autotest_cod8_pc.cpp +++ b/tests/PC/autotest_cod8_pc.cpp @@ -116,7 +116,7 @@ void AutoTest_COD8_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD8"; diff --git a/tests/PC/autotest_cod9_pc.cpp b/tests/PC/autotest_cod9_pc.cpp index a935455..e03e979 100644 --- a/tests/PC/autotest_cod9_pc.cpp +++ b/tests/PC/autotest_cod9_pc.cpp @@ -116,7 +116,7 @@ void AutoTest_COD9_PC::testFactory() { const QString testName = "Factory ingest: " + fastFilePath; - FastFile* fastFile = FastFileFactory::Create(fastFilePath); + FastFile* fastFile = FastFile::Open(fastFilePath); const QString game = fastFile->GetGame(); bool correctGame = game == "COD9";