selectable releases

This commit is contained in:
Michael Freno
2025-11-25 15:58:57 -05:00
parent 94d1b759ae
commit a9d6ef78b5
8 changed files with 615 additions and 80 deletions

View File

@@ -110,11 +110,16 @@ function TestModuleLoader:test_stub_has_safe_clearCache_method()
lu.assertIsTable(result)
end
function TestModuleLoader:test_stub_returns_nil_for_unknown_properties()
function TestModuleLoader:test_stub_returns_function_for_unknown_properties()
local stub = ModuleLoader.safeRequire(modulePath .. "modules.FakeModule", true)
lu.assertIsNil(stub.unknownProperty)
lu.assertIsNil(stub.anotherUnknownProperty)
-- Unknown properties should return no-op functions for safe method calls
lu.assertIsFunction(stub.unknownProperty)
lu.assertIsFunction(stub.anotherUnknownProperty)
-- Calling unknown methods should not error
stub:unknownMethod()
stub:anotherUnknownMethod("arg1", "arg2")
end
function TestModuleLoader:test_stub_callable_returns_itself()