test: add more mocks
This commit is contained in:
parent
b255d91e6d
commit
1e34a7fe74
1 changed files with 12 additions and 0 deletions
|
|
@ -4,6 +4,14 @@ local mock = {
|
||||||
cursors = {},
|
cursors = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mock.get_lines = function()
|
||||||
|
return mock.lines
|
||||||
|
end
|
||||||
|
|
||||||
|
mock.get_commands = function()
|
||||||
|
return mock.commands
|
||||||
|
end
|
||||||
|
|
||||||
mock.reset = function()
|
mock.reset = function()
|
||||||
mock.commands = {}
|
mock.commands = {}
|
||||||
mock.lines = {}
|
mock.lines = {}
|
||||||
|
|
@ -25,6 +33,7 @@ mock.reset = function()
|
||||||
end,
|
end,
|
||||||
nvim_win_set_option = function() end,
|
nvim_win_set_option = function() end,
|
||||||
nvim_buf_set_option = function() end,
|
nvim_buf_set_option = function() end,
|
||||||
|
nvim_buf_set_name = function() end,
|
||||||
nvim_buf_set_var = function() end,
|
nvim_buf_set_var = function() end,
|
||||||
nvim_buf_set_keymap = function() end,
|
nvim_buf_set_keymap = function() end,
|
||||||
nvim_buf_delete = function() end,
|
nvim_buf_delete = function() end,
|
||||||
|
|
@ -66,6 +75,9 @@ mock.reset = function()
|
||||||
return lines
|
return lines
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
schedule = function(callback)
|
||||||
|
callback()
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue