landsandboat/scripts/specs/test/CStub.lua
sruon 6b4ef12dca xi_test: LSB test framework
Co-Authored-By: KnowOne134 <35616771+KnowOne134@users.noreply.github.com>
Co-Authored-By: InoUno <774909+InoUno@users.noreply.github.com>
Co-Authored-By: Corey <2593549+cocosolos@users.noreply.github.com>
2025-09-06 00:03:15 -06:00

17 lines
378 B
Lua

---@meta
-- luacheck: ignore 241
---@class CStub : CSpy
local CStub = {}
---Set a return value for the stub
---@param value any Value to return when stub is called
---@return nil
function CStub:returnValue(value)
end
---Set a side effect function for the stub
---@param func function Function to execute when stub is called
---@return nil
function CStub:sideEffect(func)
end