aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-02-20 20:36:56 +0100
committerDundar Göc <gocdundar@gmail.com>2022-02-20 21:14:27 +0100
commit864e51a1dd58b885327552fb601c7aa99ae84df5 (patch)
tree316508687cdce084aa699464702e70077b368e13 /test/helpers.lua
parent6a3acccd8be1c3796c0d1630383046b54b9f994c (diff)
downloadrneovim-864e51a1dd58b885327552fb601c7aa99ae84df5.tar.gz
rneovim-864e51a1dd58b885327552fb601c7aa99ae84df5.tar.bz2
rneovim-864e51a1dd58b885327552fb601c7aa99ae84df5.zip
test: correct emmylua annotations
This will fix the warnings sumneko language server outputs.
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 333e98d495..7d2f8f760a 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -58,9 +58,9 @@ local check_logs_useless_lines = {
--- Invokes `fn` and includes the tail of `logfile` in the error message if it
--- fails.
---
----@param logfile Log file, defaults to $NVIM_LOG_FILE or '.nvimlog'
----@param fn Function to invoke
----@param ... Function arguments
+---@param logfile string Log file, defaults to $NVIM_LOG_FILE or '.nvimlog'
+---@param fn string Function to invoke
+---@param ... string Function arguments
local function dumplog(logfile, fn, ...)
-- module.validate({
-- logfile={logfile,'s',true},
@@ -102,8 +102,8 @@ end
--- Asserts that `pat` matches one or more lines in the tail of $NVIM_LOG_FILE.
---
----@param pat (string) Lua pattern to search for in the log file.
----@param logfile (string, default=$NVIM_LOG_FILE) full path to log file.
+---@param pat string Lua pattern to search for in the log file
+---@param logfile string Full path to log file (default=$NVIM_LOG_FILE)
function module.assert_log(pat, logfile)
logfile = logfile or os.getenv('NVIM_LOG_FILE') or '.nvimlog'
local nrlines = 10