Replacing errors with warns in non-critical areas

This commit is contained in:
2025-11-17 01:56:02 -05:00
parent f4d514bf2e
commit e5e7b55709
25 changed files with 3596 additions and 313 deletions

View File

@@ -161,22 +161,24 @@ end
-- Test: new() with imagePath (successful load via cache)
function TestRenderer:testNewWithImagePathSuccessfulLoad()
local mockImage = {
getDimensions = function() return 50, 50 end
getDimensions = function()
return 50, 50
end,
}
-- Pre-populate the cache so load succeeds
ImageCache._cache["test/image.png"] = {
image = mockImage,
imageData = nil
imageData = nil,
}
local renderer = Renderer.new({
imagePath = "test/image.png",
}, createDeps())
luaunit.assertEquals(renderer.imagePath, "test/image.png")
luaunit.assertEquals(renderer._loadedImage, mockImage)
-- Clean up cache
ImageCache._cache["test/image.png"] = nil
end