Added test and workspace
This commit is contained in:
14
The-Only-Cure.code-workspace
Normal file
14
The-Only-Cure.code-workspace
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../PerformanceTestFramework"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../TestFramework"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
@@ -95,13 +95,13 @@ TestFramework.registerTestModule("AmputationHandler", "Top Right", function()
|
|||||||
handler:execute(true)
|
handler:execute(true)
|
||||||
TestUtils.assert(ModDataHandler.GetInstance():getIsCut("Hand_R"))
|
TestUtils.assert(ModDataHandler.GetInstance():getIsCut("Hand_R"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function Tests.CutRightForearm()
|
function Tests.CutRightForearm()
|
||||||
local handler = AmputationHandler:new("ForeArm_R")
|
local handler = AmputationHandler:new("ForeArm_R")
|
||||||
handler:execute(true)
|
handler:execute(true)
|
||||||
TestUtils.assert(ModDataHandler.GetInstance():getIsCut("ForeArm_R") and ModDataHandler.GetInstance():getIsCut("Hand_R"))
|
TestUtils.assert(ModDataHandler.GetInstance():getIsCut("ForeArm_R") and ModDataHandler.GetInstance():getIsCut("Hand_R"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function Tests.CutRightUpperarm()
|
function Tests.CutRightUpperarm()
|
||||||
local handler = AmputationHandler:new("UpperArm_R")
|
local handler = AmputationHandler:new("UpperArm_R")
|
||||||
handler:execute(true)
|
handler:execute(true)
|
||||||
@@ -113,11 +113,11 @@ end)
|
|||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
if not getActivatedMods():contains("PerfTestFramework") or not isDebugEnabled() then return end
|
if not getActivatedMods():contains("PerfTestFramework") or not isDebugEnabled() then return end
|
||||||
local PerfTest = require("PerfTest/main") -- SHould be global anyway
|
local PerfTest = require("PerfTest/main") -- SHould be global anyway
|
||||||
local CachedDataHandler = require("TOC/Handlers/CachedDataHandler")
|
local CachedDataHandler = require("TOC/Handlers/CachedDataHandler")
|
||||||
|
|
||||||
|
PerfTest.RegisterMethod("PlayerHandler", PlayerHandler, "InitializePlayer")
|
||||||
PerfTest.RegisterMethod("PlayerHandler", PlayerHandler, "UpdateCicatrization")
|
PerfTest.RegisterMethod("PlayerHandler", PlayerHandler, "UpdateCicatrization")
|
||||||
PerfTest.RegisterMethod("CachedDataHandler", CachedDataHandler, "CalculateHighestAmputatedLimbs")
|
PerfTest.RegisterMethod("CachedDataHandler", CachedDataHandler, "CalculateHighestAmputatedLimbs")
|
||||||
PerfTest.RegisterMethod("ISHealthPanel", ISHealthPanel, "render")
|
PerfTest.RegisterMethod("ISHealthPanel", ISHealthPanel, "render")
|
||||||
|
|||||||
Reference in New Issue
Block a user