text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: test/functional/lua/filetype_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exec_lua = n.exec_lua
local eq = t.eq
local api = n.api
local clear = n.clear
local pathroot = n.pathroot
local command = n.command
local mkdir = t.mkdir
local rmdir = n.rmdir
local ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/filetype_spec.lua", "license": "mit", "size": 4622} |
### File: test/functional/lua/fs_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local mkdir_p = n.mkdir_p
local rmdir = n.rmdir
local nvim_dir = n.nvim_dir
local command = n.command
local api = n.api
local te... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/fs_spec.lua", "license": "mit", "size": 14409} |
### File: test/functional/lua/glob_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local exec_lua = n.exec_lua
describe('glob', function()
before_each(n.clear)
after_each(n.clear)
local match = function(...)
return exec_lua(
[[
local p... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/glob_spec.lua", "license": "mit", "size": 10092} |
### File: test/functional/lua/highlight_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local exec_lua = n.exec_lua
local eq = t.eq
local eval = n.eval
local command = n.command
local clear = n.clear
local api = n.api
desc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/highlight_spec.lua", "license": "mit", "size": 6564} |
### File: test/functional/lua/inspector_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exec_lua = n.exec_lua
local eq = t.eq
local eval = n.eval
local clear = n.clear
describe('vim.inspect_pos', function()
before_each(function()
clear()
end)
it('it returns... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/inspector_spec.lua", "license": "mit", "size": 2769} |
### File: test/functional/lua/iter_spec.lua
local t = require('test.testutil')
local eq = t.eq
local matches = t.matches
local pcall_err = t.pcall_err
describe('vim.iter', function()
it('new() on iterable class instance', function()
local rb = vim.ringbuf(3)
rb:push('a')
rb:push('b')
local it = vim... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/iter_spec.lua", "license": "mit", "size": 13177} |
### File: test/functional/lua/json_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local pcall_err = t.pcall_err
describe('vim.json.decode()', function()
before_each(function()
clear()
end)
it('par... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/json_spec.lua", "license": "mit", "size": 7481} |
### File: test/functional/lua/loader_spec.lua
-- Test suite for testing interactions with API bindings
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exec_lua = n.exec_lua
local command = n.command
local clear = n.clear
local eq = t.eq
describe('vim.loader', function()
befo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/loader_spec.lua", "license": "mit", "size": 2043} |
### File: test/functional/lua/loop_spec.lua
-- Test suite for testing interactions with API bindings
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local fn = n.fn
local api = n.api
local clear = n.clear
local sleep = vim.uv.sleep
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/loop_spec.lua", "license": "mit", "size": 5068} |
### File: test/functional/lua/luaeval_spec.lua
-- Test suite for testing luaeval() function
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local pcall_err = t.pcall_err
local exc_exec = n.exc_exec
local remove_trace = t.remove_trac... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/luaeval_spec.lua", "license": "mit", "size": 19278} |
### File: test/functional/lua/mpack_spec.lua
-- Test suite for testing interactions with API bindings
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local exec_lua = n.exec_lua
describe('lua vim.mpack', function()
before_each(clear)
it('enc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/mpack_spec.lua", "license": "mit", "size": 802} |
### File: test/functional/lua/overrides_spec.lua
-- Test for Vim overrides of lua built-ins
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local eq = t.eq
local NIL = vim.NIL
local feed = n.feed
local clear = n.clear
local fn = n.f... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/overrides_spec.lua", "license": "mit", "size": 13106} |
### File: test/functional/lua/runtime_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local eval = n.eval
local exec = n.exec
local fn = n.fn
local mkdir_p = n.mkdir_p
local rmdir = n.rmdir
local write_file = t.write_file
describe('runt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/runtime_spec.lua", "license": "mit", "size": 15537} |
### File: test/functional/lua/secure_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local eq = t.eq
local clear = n.clear
local command = n.command
local pathsep = n.get_pathsep()
local is_os = t.is_os
local api = n.api
lo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/secure_spec.lua", "license": "mit", "size": 11820} |
### File: test/functional/lua/snippet_spec.lua
---@diagnostic disable: no-unknown
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local buf_lines = n.buf_lines
local clear = n.clear
local eq = t.eq
local exec_lua = n.exec_lua
local feed = n.feed
local api = n.api
local fn = n.fn
loc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/snippet_spec.lua", "license": "mit", "size": 9335} |
### File: test/functional/lua/spell_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local pcall_err = t.pcall_err
describe('vim.spell', function()
before_each(function()
clear()
end)
describe('.che... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/spell_spec.lua", "license": "mit", "size": 1046} |
### File: test/functional/lua/system_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local function system_sync(cmd, opts)
return exec_lua(
[[
local cmd, opts = ...
local obj = vim.system(...)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/system_spec.lua", "license": "mit", "size": 2858} |
### File: test/functional/lua/text_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
describe('vim.text', function()
before_each(clear)
describe('hexencode() and hexdecode()', function()
it('works', function()
local cases =... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/text_spec.lua", "license": "mit", "size": 574} |
### File: test/functional/lua/thread_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local assert_alive = n.assert_alive
local clear = n.clear
local feed = n.feed
local eq = t.eq
local exec_lua = n.exec_lua
local next_msg =... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/thread_spec.lua", "license": "mit", "size": 11117} |
### File: test/functional/lua/ui_event_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local eq = t.eq
local exec_lua = n.exec_lua
local clear = n.clear
local feed = n.feed
local fn = n.fn
local assert_log = t.assert_log
lo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/ui_event_spec.lua", "license": "mit", "size": 7555} |
### File: test/functional/lua/ui_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local ok = t.ok
local exec_lua = n.exec_lua
local clear = n.clear
local feed = n.feed
local eval = n.eval
local is_ci = t.is_ci
local is_os = t.is_os
local poke_eventloop = n.pok... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/ui_spec.lua", "license": "mit", "size": 5137} |
### File: test/functional/lua/uri_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local is_os = t.is_os
local skip = t.skip
local write_file = t.write_file
describe('URI methods', function()
before_each(fun... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/uri_spec.lua", "license": "mit", "size": 8190} |
### File: test/functional/lua/version_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local ok = t.ok
local exec_lua = n.exec_lua
local matches = t.matches
local pcall_err = t.pcall_err
local fn = n.fn
local function v(ver)
return vim... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/version_spec.lua", "license": "mit", "size": 12752} |
### File: test/functional/lua/vim_spec.lua
-- Test suite for testing interactions with API bindings
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local nvim_prog = n.nvim_prog
local fn = n.fn
local api = n.api
local command = n.co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/vim_spec.lua", "license": "mit", "size": 123493} |
### File: test/functional/lua/watch_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local exec_lua = n.exec_lua
local clear = n.clear
local is_ci = t.is_ci
local is_os = t.is_os
local skip = t.skip
-- Create a file via a rename to avoid multiple
-- events wh... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/watch_spec.lua", "license": "mit", "size": 3457} |
### File: test/functional/lua/with_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local fn = n.fn
local api = n.api
local command = n.command
local eq = t.eq
local exec_lua = n.exec_lua
local exec_capture = n.exec_capture
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/with_spec.lua", "license": "mit", "size": 51633} |
### File: test/functional/lua/xdiff_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local pcall_err = t.pcall_err
describe('xdiff bindings', function()
before_each(function()
clear()
end)
describe(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/lua/xdiff_spec.lua", "license": "mit", "size": 3964} |
### File: test/functional/options/autochdir_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local fn = n.fn
local command = n.command
local mkdir = t.mkdir
describe("'autochdir'", function()
it('given on the shell gets processed prope... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/autochdir_spec.lua", "license": "mit", "size": 1457} |
### File: test/functional/options/chars_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear, command = n.clear, n.command
local pcall_err = t.pcall_err
local eval = n.eval
local eq = t.eq
local insert = n.insert
loc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/chars_spec.lua", "license": "mit", "size": 7929} |
### File: test/functional/options/cursorbind_spec.lua
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local command = n.command
local exec = n.exec
local feed = n.feed
before_each(clear)
describe("'cursorbind'", function()
-- oldtest: Test_c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/cursorbind_spec.lua", "license": "mit", "size": 3371} |
### File: test/functional/options/defaults_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local assert_alive = n.assert_alive
local assert_log = t.assert_log
local api = n.api
local command = n.command
local clear = n.clea... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/defaults_spec.lua", "license": "mit", "size": 39564} |
### File: test/functional/options/keymap_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, feed, eq = n.clear, n.feed, t.eq
local expect, command, eval = n.expect, n.command, n.eval
local insert, call = n.insert, n.call
local exec_capture, dedent = n.exec_capture,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/keymap_spec.lua", "license": "mit", "size": 6537} |
### File: test/functional/options/modified_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local api = n.api
describe("'modified'", function()
before_each(function()
clear()
end)
it("can be unset after changing 'fileformat'",... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/modified_spec.lua", "license": "mit", "size": 542} |
### File: test/functional/options/mousescroll_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local command = n.command
local clear = n.clear
local eval = n.eval
local eq = t.eq
local exc_exec = n.exc_exec
local feed = n.feed
local scroll = function(direction)
return n.re... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/mousescroll_spec.lua", "license": "mit", "size": 4130} |
### File: test/functional/options/num_options_spec.lua
-- Tests for :setlocal and :setglobal
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, feed_command, eval, eq, api = n.clear, n.feed_command, n.eval, t.eq, n.api
local function should_fail(opt, value, errmsg)
feed... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/num_options_spec.lua", "license": "mit", "size": 4235} |
### File: test/functional/options/shortmess_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local command = n.command
local eq = t.eq
local eval = n.eval
local feed = n.feed
describe("'shortmess'", fu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/shortmess_spec.lua", "license": "mit", "size": 2553} |
### File: test/functional/options/tabstop_spec.lua
local n = require('test.functional.testnvim')()
local assert_alive = n.assert_alive
local clear = n.clear
local feed = n.feed
describe("'tabstop' option", function()
before_each(function()
clear()
end)
-- NOTE: Setting 'tabstop' to a big number reproduces ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/tabstop_spec.lua", "license": "mit", "size": 659} |
### File: test/functional/options/winfixbuf_spec.lua
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
describe("Nvim API calls with 'winfixbuf'", function()
before_each(function()
clear()
end)
it("Calling vim.api.nvim_win_set_buf with 'winfixbuf'", function(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/options/winfixbuf_spec.lua", "license": "mit", "size": 1469} |
### File: test/functional/plugin/ccomplete_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local command = n.command
local eq = t.eq
local eval = n.eval
local feed = n.feed
local write_file = t.write_file
describe('ccomplete#Complete', function()
set... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/ccomplete_spec.lua", "license": "mit", "size": 2167} |
### File: test/functional/plugin/cfilter_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local command = n.command
local eq = t.eq
local fn = n.fn
describe('cfilter.lua', function()
before_each(function()
clear()
command('packadd cfilter')
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/cfilter_spec.lua", "license": "mit", "size": 2727} |
### File: test/functional/plugin/editorconfig_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local command = n.command
local eq = t.eq
local pathsep = n.get_pathsep()
local fn = n.fn
local api = n.api
local exec_lua = n.exec_lua
local testdir = 'Xtest... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/editorconfig_spec.lua", "license": "mit", "size": 5716} |
### File: test/functional/plugin/health_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local curbuf_contents = n.curbuf_contents
local command = n.command
local eq, matches = t.eq, t.matches
local get... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/health_spec.lua", "license": "mit", "size": 14777} |
### File: test/functional/plugin/lsp/codelens_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exec_lua = n.exec_lua
local eq = t.eq
describe('vim.lsp.codelens', function()
before_each(function()
n.clear()
exec_lua('require("vim.lsp")')
end)
after_each(n.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/codelens_spec.lua", "license": "mit", "size": 2924} |
### File: test/functional/plugin/lsp/completion_spec.lua
---@diagnostic disable: no-unknown
local t = require('test.testutil')
local t_lsp = require('test.functional.plugin.lsp.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local neq = t.neq
local exec_lua = n.exec_lua... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/completion_spec.lua", "license": "mit", "size": 16376} |
### File: test/functional/plugin/lsp/diagnostic_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_lsp = require('test.functional.plugin.lsp.testutil')
local clear = n.clear
local exec_lua = n.exec_lua
local eq = t.eq
local neq = t.neq
local create_server_definition =... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/diagnostic_spec.lua", "license": "mit", "size": 12507} |
### File: test/functional/plugin/lsp/handler_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local exec_lua = n.exec_lua
local pcall_err = t.pcall_err
local matches = t.matches
describe('lsp-handlers', function()
describe('vim.lsp._with_extend', function()... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/handler_spec.lua", "license": "mit", "size": 1017} |
### File: test/functional/plugin/lsp/incremental_sync_spec.lua
-- Test suite for testing interactions with the incremental sync algorithms powering the LSP client
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local api = n.api
local clear = n.clear
local eq = t.eq
local exec_lua = ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/incremental_sync_spec.lua", "license": "mit", "size": 17420} |
### File: test/functional/plugin/lsp/inlay_hint_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local t_lsp = require('test.functional.plugin.lsp.testutil')
local eq = t.eq
local dedent = t.dedent
local exec_lua = n.exec_lu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/inlay_hint_spec.lua", "license": "mit", "size": 10505} |
### File: test/functional/plugin/lsp/semantic_tokens_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local t_lsp = require('test.functional.plugin.lsp.testutil')
local command = n.command
local dedent = t.dedent
local eq = ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/semantic_tokens_spec.lua", "license": "mit", "size": 52651} |
### File: test/functional/plugin/lsp/snippet_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local snippet = require('vim.lsp._snippet_grammar')
local type = snippet.NodeType
local eq = t.eq
local exec_lua = n.exec_lua
describe('vim.lsp._snippet_grammar', function()
befo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/snippet_spec.lua", "license": "mit", "size": 4270} |
### File: test/functional/plugin/lsp/testutil.lua
local n = require('test.functional.testnvim')()
local clear = n.clear
local exec_lua = n.exec_lua
local run = n.run
local stop = n.stop
local api = n.api
local NIL = vim.NIL
local M = {}
function M.clear_notrace()
-- problem: here be dragons
-- solution: don't lo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/testutil.lua", "license": "mit", "size": 5358} |
### File: test/functional/plugin/lsp/utils_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local feed = n.feed
local eq = t.eq
local exec_lua = n.exec_lua
describe('vim.lsp.util', function()
before_each(n.clear)
descr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp/utils_spec.lua", "license": "mit", "size": 5715} |
### File: test/functional/plugin/lsp_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_lsp = require('test.functional.plugin.lsp.testutil')
local assert_log = t.assert_log
local buf_lines = n.buf_lines
local clear = n.clear
local command = n.command
local dedent = t.d... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/lsp_spec.lua", "license": "mit", "size": 184266} |
### File: test/functional/plugin/man_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local command, feed = n.command, n.feed
local clear = n.clear
local exec_lua = n.exec_lua
local fn = n.fn
local nvim_prog = n.nvim_prog
lo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/man_spec.lua", "license": "mit", "size": 9460} |
### File: test/functional/plugin/matchparen_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local command = n.command
local api = n.api
local feed = n.feed
local eq = t.eq
describe('matchparen', funct... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/matchparen_spec.lua", "license": "mit", "size": 1193} |
### File: test/functional/plugin/msgpack_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local api = n.api
local eq = t.eq
local nvim_eval = n.eval
local nvim_command = n.command
local exc_exec = n.exc_exec
local ok = t.ok
local NIL = vim.NIL
describe(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/msgpack_spec.lua", "license": "mit", "size": 29702} |
### File: test/functional/plugin/shada_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local t_shada = require('test.functional.shada.testutil')
local clear = n.clear
local eq, api, nvim_eval, nvim_command, exc_exec, fn, nv... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/shada_spec.lua", "license": "mit", "size": 117541} |
### File: test/functional/plugin/tohtml_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local exec = n.exec
local exec_lua = n.exec_lua
local eq = t.eq
local fn = n.fn
local api = n.api
local insert = ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/tohtml_spec.lua", "license": "mit", "size": 10801} |
### File: test/functional/plugin/tutor_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local command = n.command
local feed = n.feed
local is_os = t.is_os
describe(':Tutor', function()
local screen ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/tutor_spec.lua", "license": "mit", "size": 9794} |
### File: test/functional/plugin/vim_syntax_spec.lua
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local exec = n.exec
local api = n.api
describe('Vimscript syntax highlighting', function()
local screen --- @type test.functional.ui.screen
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/plugin/vim_syntax_spec.lua", "license": "mit", "size": 1316} |
### File: test/functional/preload.lua
-- Modules loaded here will NOT be cleared and reloaded by Busted.
-- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this.
local t = require('test.testutil')
require('test.functional.ui.screen')
if t.is_os('win') then
local... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/preload.lua", "license": "mit", "size": 409} |
### File: test/functional/provider/clipboard_spec.lua
-- Test clipboard provider support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect, eq, eval, so... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/clipboard_spec.lua", "license": "mit", "size": 24284} |
### File: test/functional/provider/define_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eval, command = n.eval, n.command
local eq, run, stop = t.eq, n.run, n.stop
local clear = n.clear
local api = n.api
local function get_prefix(sync)
if sync then
return 'syn... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/define_spec.lua", "license": "mit", "size": 10334} |
### File: test/functional/provider/nodejs_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq, clear = t.eq, n.clear
local missing_provider = n.missing_provider
local command = n.command
local write_file = t.write_file
local eval = n.eval
local retry = t.retry
do
cle... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/nodejs_spec.lua", "license": "mit", "size": 1768} |
### File: test/functional/provider/perl_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq, clear = t.eq, n.clear
local missing_provider = n.missing_provider
local command = n.command
local write_file = t.write_file
local eval = n.eval
local retry = t.retry
local api =... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/perl_spec.lua", "license": "mit", "size": 3417} |
### File: test/functional/provider/provider_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, eval = n.clear, n.eval
local command = n.command
local eq = t.eq
local pcall_err = t.pcall_err
describe('providers', function()
before_each(function()
clear('--cmd... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/provider_spec.lua", "license": "mit", "size": 979} |
### File: test/functional/provider/python3_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local assert_alive = n.assert_alive
local eval, command, feed = n.eval, n.command, n.feed
local eq, clear, insert = t.eq, n.clear, n.insert
local expect, write_file = n.expect, t.write... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/python3_spec.lua", "license": "mit", "size": 5775} |
### File: test/functional/provider/ruby_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local assert_alive = n.assert_alive
local clear = n.clear
local command = n.command
local eq = t.eq
local exc_exec = n.exc_exec
local expect = n.expect
local feed = n.feed
local feed_comm... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/provider/ruby_spec.lua", "license": "mit", "size": 3713} |
### File: test/functional/script/luacats_grammar_spec.lua
local t = require('test.testutil')
local eq = t.eq
local grammar = require('scripts/luacats_grammar')
describe('luacats grammar', function()
--- @param text string
--- @param exp table<string,string>
local function test(text, exp)
it(string.format('... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/script/luacats_grammar_spec.lua", "license": "mit", "size": 3790} |
### File: test/functional/script/luacats_parser_spec.lua
local t = require('test.testutil')
local eq = t.eq
local parser = require('scripts/luacats_parser')
--- @param name string
--- @param text string
--- @param exp table<string,string>
local function test(name, text, exp)
exp = vim.deepcopy(exp, true)
it(name... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/script/luacats_parser_spec.lua", "license": "mit", "size": 1809} |
### File: test/functional/script/text_utils_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local exec_lua = n.exec_lua
local eq = t.eq
local function md_to_vimdoc(text, start_indent, indent, text_width)
return exec_lua(
[[
local text, start_indent, indent, text_w... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/script/text_utils_spec.lua", "license": "mit", "size": 1293} |
### File: test/functional/shada/buffers_spec.lua
-- shada buffer list saving/reading support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, fn, eq, api = n.command, n.fn, t.eq, n.api
local expect_exit = n.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/buffers_spec.lua", "license": "mit", "size": 2924} |
### File: test/functional/shada/compatibility_spec.lua
-- ShaDa compatibility support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, fn, eq = n.command, n.fn, t.eq
local exc_exec = n.exc_exec
local reset, ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/compatibility_spec.lua", "license": "mit", "size": 13954} |
### File: test/functional/shada/errors_spec.lua
-- ShaDa errors handling support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, eq, exc_exec = n.command, t.eq, n.exc_exec
local reset, clear, get_shada_rw =... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/errors_spec.lua", "license": "mit", "size": 27422} |
### File: test/functional/shada/history_spec.lua
-- ShaDa history saving/reading support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, fn, api, nvim_feed, eq = n.command, n.fn, n.api, n.feed, t.eq
local a... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/history_spec.lua", "license": "mit", "size": 7943} |
### File: test/functional/shada/marks_spec.lua
-- ShaDa marks saving/reading support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local api, nvim_command, fn, eq = n.api, n.command, n.fn, t.eq
local feed = n.feed
local exc_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/marks_spec.lua", "license": "mit", "size": 9375} |
### File: test/functional/shada/merging_spec.lua
-- ShaDa merging data support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, fn, eq = n.command, n.fn, t.eq
local exc_exec, exec_capture = n.exc_exec, n.exe... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/merging_spec.lua", "license": "mit", "size": 40561} |
### File: test/functional/shada/registers_spec.lua
-- ShaDa registers saving/reading support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local nvim_command, fn, eq = n.command, n.fn, t.eq
local reset, clear = t_shada.reset... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/registers_spec.lua", "license": "mit", "size": 5747} |
### File: test/functional/shada/shada_spec.lua
-- Other ShaDa tests
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local uv = vim.uv
local paths = t.paths
local api, nvim_command, fn, eq = n.api, n.command, n.fn, t.eq
local w... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/shada_spec.lua", "license": "mit", "size": 10120} |
### File: test/functional/shada/testutil.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local api = n.api
local write_file = t.write_file
local concat_tables = t.concat_tables
local tmpname = t.tmpname()
-- o={
-- args=…,
-- args_rm=…,
-- shadafile=…,
-- }
loca... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/testutil.lua", "license": "mit", "size": 1916} |
### File: test/functional/shada/variables_spec.lua
-- ShaDa variables saving/reading support
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local t_shada = require('test.functional.shada.testutil')
local api, fn, nvim_command, eq, eval = n.api, n.fn, n.command, t.eq, n.eval
local ex... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/shada/variables_spec.lua", "license": "mit", "size": 5446} |
### File: test/functional/terminal/altscreen_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local tt = require('test.functional.terminal.testutil')
local clear, eq, api = n.clear, t.eq, n.api
local feed = n.feed
local feed_data = tt.feed_data
local enter_altscreen = tt.ente... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/altscreen_spec.lua", "license": "mit", "size": 5711} |
### File: test/functional/terminal/api_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local tt = require('test.functional.terminal.testutil')
local ok = t.ok
if t.skip(t.is_os('win')) then
return
end
describe('api', function()
local screen
local socket_name = './Xte... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/api_spec.lua", "license": "mit", "size": 2663} |
### File: test/functional/terminal/buffer_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local tt = require('test.functional.terminal.testutil')
local assert_alive = n.assert_alive
local feed, clear = n.feed, n.clear
local... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/buffer_spec.lua", "license": "mit", "size": 22540} |
### File: test/functional/terminal/channel_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local eq = t.eq
local eval = n.eval
local command = n.command
local pcall_err = t.pcall_err
local feed = n.fee... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/channel_spec.lua", "license": "mit", "size": 9362} |
### File: test/functional/terminal/clipboard_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local retry = t.retry
local clear = n.clear
local fn = n.fn
local testprg = n.testprg
local exec_lua = n.exec_lua
local eval = n.eval
describe(':terminal', function... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/clipboard_spec.lua", "license": "mit", "size": 1528} |
### File: test/functional/terminal/cursor_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local tt = require('test.functional.terminal.testutil')
local feed, clear = n.feed, n.clear
local testprg, command = n.testprg, n.com... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/cursor_spec.lua", "license": "mit", "size": 41448} |
### File: test/functional/terminal/edit_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local screen = require('test.functional.ui.screen')
local testprg = n.testprg
local command = n.command
local fn = n.fn
local api = n.api
local clear = n.clear
local eq = t.eq
local matc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/edit_spec.lua", "license": "mit", "size": 2305} |
### File: test/functional/terminal/ex_terminal_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local assert_alive = n.assert_alive
local clear, poke_eventloop = n.clear, n.poke_eventloop
local testprg, source, eq = n.testpr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/ex_terminal_spec.lua", "license": "mit", "size": 11611} |
### File: test/functional/terminal/highlight_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local tt = require('test.functional.terminal.testutil')
local feed, clear = n.feed, n.clear
local api = n.api
local testprg, comma... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/highlight_spec.lua", "license": "mit", "size": 13699} |
### File: test/functional/terminal/mouse_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local tt = require('test.functional.terminal.testutil')
local clear, eq, eval = n.clear, t.eq, n.eval
local feed, api, command = n.feed, n.api, n.command
local feed_data = tt.feed_data
l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/mouse_spec.lua", "license": "mit", "size": 26347} |
### File: test/functional/terminal/scrollback_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local tt = require('test.functional.terminal.testutil')
local clear, eq = n.clear, t.eq
local feed, testprg = n.feed, n.testprg
l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/scrollback_spec.lua", "license": "mit", "size": 21154} |
### File: test/functional/terminal/testutil.lua
-- To test tui/input.c, this module spawns `nvim` inside :terminal and sends
-- bytes via jobsend(). Note: the functional/testutil.lua test-session methods
-- operate on the _host_ session, _not_ the child session.
local n = require('test.functional.testnvim')()
local Sc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/testutil.lua", "license": "mit", "size": 5969} |
### File: test/functional/terminal/tui_spec.lua
-- TUI acceptance tests.
-- Uses :terminal as a way to send keys and assert screen state.
--
-- "bracketed paste" terminal feature:
-- http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Paste-Mode
local t = require('test.testutil')
local n = require('tes... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/tui_spec.lua", "license": "mit", "size": 127467} |
### File: test/functional/terminal/window_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local tt = require('test.functional.terminal.testutil')
local feed_data = tt.feed_data
local feed, clear = n.feed, n.clear
local poke_eventloop = n.poke_eventloop
local command = n.comm... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/window_spec.lua", "license": "mit", "size": 10524} |
### File: test/functional/terminal/window_split_tab_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local tt = require('test.functional.terminal.testutil')
local assert_alive = n.assert_alive
local clear = n.clear
local feed = n.feed
local feed_command = n.feed_command
local... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/terminal/window_split_tab_spec.lua", "license": "mit", "size": 4424} |
### File: test/functional/testnvim.lua
local uv = vim.uv
local t = require('test.testutil')
local Session = require('test.client.session')
local uv_stream = require('test.client.uv_stream')
local SocketStream = uv_stream.SocketStream
local ChildProcessStream = uv_stream.ChildProcessStream
local check_cores = t.check_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/testnvim.lua", "license": "mit", "size": 27440} |
### File: test/functional/treesitter/fold_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local eq = t.eq
local insert = n.insert
local exec_lua = n.exec_lua
local command = n.command
local feed = n.fe... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/fold_spec.lua", "license": "mit", "size": 25167} |
### File: test/functional/treesitter/highlight_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear = n.clear
local insert = n.insert
local exec_lua = n.exec_lua
local feed = n.feed
local command = n.command
local ap... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/highlight_spec.lua", "license": "mit", "size": 47028} |
### File: test/functional/treesitter/inspect_tree_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local insert = n.insert
local dedent = t.dedent
local eq = t.eq
local exec_lua = n.exec_lua
local feed = n.feed
describe('vim.treesitter.inspect_tree', fu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/inspect_tree_spec.lua", "license": "mit", "size": 4892} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.