mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #17476 from dundargoc/test/emmylua
test: correct emmylua annotations
This commit is contained in:
commit
cca08d0f3b
@ -58,9 +58,9 @@ local check_logs_useless_lines = {
|
|||||||
--- Invokes `fn` and includes the tail of `logfile` in the error message if it
|
--- Invokes `fn` and includes the tail of `logfile` in the error message if it
|
||||||
--- fails.
|
--- fails.
|
||||||
---
|
---
|
||||||
---@param logfile Log file, defaults to $NVIM_LOG_FILE or '.nvimlog'
|
---@param logfile string Log file, defaults to $NVIM_LOG_FILE or '.nvimlog'
|
||||||
---@param fn Function to invoke
|
---@param fn string Function to invoke
|
||||||
---@param ... Function arguments
|
---@param ... string Function arguments
|
||||||
local function dumplog(logfile, fn, ...)
|
local function dumplog(logfile, fn, ...)
|
||||||
-- module.validate({
|
-- module.validate({
|
||||||
-- logfile={logfile,'s',true},
|
-- logfile={logfile,'s',true},
|
||||||
@ -102,8 +102,8 @@ end
|
|||||||
|
|
||||||
--- Asserts that `pat` matches one or more lines in the tail of $NVIM_LOG_FILE.
|
--- 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 pat string Lua pattern to search for in the log file
|
||||||
---@param logfile (string, default=$NVIM_LOG_FILE) full path to log file.
|
---@param logfile string Full path to log file (default=$NVIM_LOG_FILE)
|
||||||
function module.assert_log(pat, logfile)
|
function module.assert_log(pat, logfile)
|
||||||
logfile = logfile or os.getenv('NVIM_LOG_FILE') or '.nvimlog'
|
logfile = logfile or os.getenv('NVIM_LOG_FILE') or '.nvimlog'
|
||||||
local nrlines = 10
|
local nrlines = 10
|
||||||
|
Loading…
Reference in New Issue
Block a user