This commit is contained in:
Insality
2025-04-18 01:24:39 +03:00
parent 0d0581b108
commit f42211782a
10 changed files with 667 additions and 684 deletions

View File

@@ -58,5 +58,11 @@ function M.input_empty_action_nil(x, y)
end
function M.input_text(text)
return hash("text"), {
text = text,
}
end
return M

View File

@@ -1,20 +0,0 @@
local mock = require("deftest.mock.mock")
local M = {}
-- Userdata type instead of script self
---@return vector
function M.get_context()
return vmath.vector({})
end
-- Callback for return value from function
function M.get_function(callback)
local listener = {}
listener.callback = function(...) if callback then return callback(...) end end
mock.mock(listener)
return function(...) return listener.callback(...) end, listener.callback
end
return M