aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 159016b484..553b8637db 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -251,9 +251,9 @@ function module.set_method_error(err)
end
--- @param lsession test.Session
---- @param request_cb function
---- @param notification_cb function
---- @param setup_cb function
+--- @param request_cb function?
+--- @param notification_cb function?
+--- @param setup_cb function?
--- @param timeout integer
--- @return {[1]: integer, [2]: string}
function module.run_session(lsession, request_cb, notification_cb, setup_cb, timeout)
@@ -642,6 +642,8 @@ function module.set_shell_powershell(fake)
return found
end
+---@param func function
+---@return table<string,function>
function module.create_callindex(func)
return setmetatable({}, {
--- @param tbl table<any,function>