text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: test/functional/ex_cmds/profile_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local uv = vim.uv
require('os')
local eval = n.eval
local command = n.command
local eq, neq = t.eq, t.neq
local tempfile = t.tmpname()
local source = n.source
local matches = t.matches
... | {"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/ex_cmds/profile_spec.lua", "license": "mit", "size": 2695} |
### File: test/functional/ex_cmds/quickfix_commands_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 clear = n.clear
local fn = n.fn
local command = n.command
local exc_exec = n.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/ex_cmds/quickfix_commands_spec.lua", "license": "mit", "size": 6208} |
### File: test/functional/ex_cmds/quit_spec.lua
local n = require('test.functional.testnvim')()
local clear = n.clear
describe(':qa', function()
before_each(function()
clear('--cmd', 'qa')
end)
it('verify #3334', function()
-- just testing if 'qa' passed as a program argument won't result in memory
... | {"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/ex_cmds/quit_spec.lua", "license": "mit", "size": 295} |
### File: test/functional/ex_cmds/script_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local neq = t.neq
local command = n.command
local exec_capture = n.exec_capture
local write_file = t.write_file
local api = n.api
local clear = n.clear
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/ex_cmds/script_spec.lua", "license": "mit", "size": 2439} |
### File: test/functional/ex_cmds/sign_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, eq, assert_alive = n.clear, t.eq, n.assert_alive
local command = n.command
local api = n.api
describe('sign', function()
before_each(clear)
describe('unplace {id}', 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/ex_cmds/sign_spec.lua", "license": "mit", "size": 1349} |
### File: test/functional/ex_cmds/source_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local command = n.command
local insert = n.insert
local eq = t.eq
local clear = n.clear
local api = n.api
local feed = n.feed
local feed_command = n.feed_command
local write_file = t.wri... | {"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/ex_cmds/source_spec.lua", "license": "mit", "size": 7332} |
### File: test/functional/ex_cmds/swapfile_preserve_recover_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local uv = vim.uv
local eq, eval, expect, exec = t.eq, n.eval, n.expect, n.exec
local assert_alive = n.assert_alive... | {"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/ex_cmds/swapfile_preserve_recover_spec.lua", "license": "mit", "size": 16852} |
### File: test/functional/ex_cmds/syntax_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local clear = n.clear
local exc_exec = n.exc_exec
describe(':syntax', function()
before_each(clear)
describe('keyword', function()
it('does not crash when group... | {"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/ex_cmds/syntax_spec.lua", "license": "mit", "size": 473} |
### File: test/functional/ex_cmds/trust_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local clear = n.clear
local command = n.command
local exec_capture = n.exec_capture
local matches = t.matches
local pathsep = n.get_pathsep()
local is_os = t.is_os
local 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/ex_cmds/trust_spec.lua", "license": "mit", "size": 2997} |
### File: test/functional/ex_cmds/undojoin_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local clear = n.clear
local insert = n.insert
local feed = n.feed
local expect = n.expect
local feed_command = n.feed_command
local exc_exec = n.exc_exec
describe(':un... | {"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/ex_cmds/undojoin_spec.lua", "license": "mit", "size": 911} |
### File: test/functional/ex_cmds/verbose_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local eq = t.eq
local exec = n.exec
local exec_capture = n.exec_capture
local write_file = t.write_file
local call_viml_function = n.api.nvim_call_function
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/ex_cmds/verbose_spec.lua", "license": "mit", "size": 6531} |
### File: test/functional/ex_cmds/wincmd_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
it(':wincmd accepts a count', function()
clear()
command('vsplit')
eq(1, fn.winnr())
command('win... | {"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/ex_cmds/wincmd_spec.lua", "license": "mit", "size": 305} |
### File: test/functional/ex_cmds/write_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq, eval, clear, write_file, source, insert =
t.eq, n.eval, n.clear, t.write_file, n.source, n.insert
local pcall_err = t.pcall_err
local command = n.command
local feed_command = ... | {"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/ex_cmds/write_spec.lua", "license": "mit", "size": 5325} |
### File: test/functional/ex_cmds/wundo_spec.lua
-- Specs for :wundo and underlying functions
local n = require('test.functional.testnvim')()
local command = n.command
local clear = n.clear
local eval = n.eval
local spawn = n.spawn
local nvim_prog = n.nvim_prog
local set_session = n.set_session
describe(':wundo', 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/ex_cmds/wundo_spec.lua", "license": "mit", "size": 966} |
### File: test/functional/ex_cmds/wviminfo_spec.lua
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear = n.clear
local command, eq, neq, write_file = n.command, t.eq, t.neq, t.write_file
local read_file = t.read_file
local is_os = t.is_os
describe(':wshada', function()
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/ex_cmds/wviminfo_spec.lua", "license": "mit", "size": 1465} |
### File: test/functional/example_spec.lua
-- To run this test:
-- TEST_FILE=test/functional/example_spec.lua make functionaltest
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
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/example_spec.lua", "license": "mit", "size": 2090} |
### File: test/functional/fixtures/CMakeLists.txt
add_library(test_lib INTERFACE)
if(MINGW)
target_link_libraries(test_lib INTERFACE -municode)
endif()
if(WIN32)
target_compile_definitions(test_lib INTERFACE MSWIN)
endif()
target_link_libraries(test_lib INTERFACE nvim_bin)
add_executable(tty-test EXCLUDE_FROM_ALL ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/CMakeLists.txt", "license": "mit", "size": 960} |
### File: test/functional/fixtures/autoload/Test104.vim
let Test104#numvar = 123
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/autoload/Test104.vim", "license": "mit", "size": 25} |
### File: test/functional/fixtures/autoload/footest.vim
" Autoload script used by test55 and test60
let footest#x = 1
func footest#F()
return 0
endfunc
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/autoload/footest.vim", "license": "mit", "size": 98} |
### File: test/functional/fixtures/autoload/provider/clipboard.vim
let g:loaded_clipboard_provider = 2
let g:test_clip = { '+': [''], '*': [''], }
let s:methods = {}
let g:cliplossy = 0
let g:cliperror = 0
" Count how many times the clipboard was invoked.
let g:clip_called_get = 0
let g:clip_called_set = 0
functio... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/autoload/provider/clipboard.vim", "license": "mit", "size": 897} |
### File: test/functional/fixtures/autoload/provider/python3.vim
" Dummy test provider, missing this required variable:
" let g:loaded_brokenenabled_provider = 0
function! provider#python3#Call(method, args)
return 42
endfunction
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/autoload/provider/python3.vim", "license": "mit", "size": 170} |
### File: test/functional/fixtures/autoload/provider/ruby.vim
" A dummy test provider
let g:loaded_ruby_provider = 2
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/autoload/provider/ruby.vim", "license": "mit", "size": 55} |
### File: test/functional/fixtures/cmdscript.cmd
@echo off
echo much success
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/cmdscript.cmd", "license": "mit", "size": 28} |
### File: test/functional/fixtures/fake-lsp-server.lua
local protocol = require 'vim.lsp.protocol'
-- Logs to $NVIM_LOG_FILE.
--
-- TODO(justinmk): remove after https://github.com/neovim/neovim/pull/7062
local function log(loglevel, area, msg)
vim.fn.writefile({ string.format('%s %s: %s', loglevel, area, msg) }, 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/fixtures/fake-lsp-server.lua", "license": "mit", "size": 25685} |
### File: test/functional/fixtures/lua/syntax_error.lua
- <= the syntax error
| {"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/fixtures/lua/syntax_error.lua", "license": "mit", "size": 22} |
### File: test/functional/fixtures/lua/test_plug/full_render/health.lua
local M = {}
M.check = function()
vim.health.start('report 1')
vim.health.ok('life is fine')
vim.health.warn('no what installed', { 'pip what', 'make what' })
vim.health.start('report 2')
vim.health.info('stuff is stable')
vim.health.e... | {"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/fixtures/lua/test_plug/full_render/health.lua", "license": "mit", "size": 320} |
### File: test/functional/fixtures/lua/test_plug/health/init.lua
local M = {}
M.check = function()
vim.health.start('report 1')
vim.health.ok('everything is fine')
vim.health.start('report 2')
vim.health.ok('nothing to see here')
end
return M
| {"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/fixtures/lua/test_plug/health/init.lua", "license": "mit", "size": 188} |
### File: test/functional/fixtures/lua/test_plug/submodule/health.lua
local M = {}
M.check = function()
vim.health.start('report 1')
vim.health.ok('everything is fine')
vim.health.start('report 2')
vim.health.ok('nothing to see here')
end
return M
| {"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/fixtures/lua/test_plug/submodule/health.lua", "license": "mit", "size": 188} |
### File: test/functional/fixtures/lua/test_plug/submodule_empty/health.lua
local M = {}
M.check = function()
return {}
end
return M
| {"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/fixtures/lua/test_plug/submodule_empty/health.lua", "license": "mit", "size": 61} |
### File: test/functional/fixtures/lua/test_plug/success1/health.lua
local M = {}
M.check = function()
vim.health.start('report 1')
vim.health.ok('everything is fine')
vim.health.start('report 2')
vim.health.ok('nothing to see here')
end
return M
| {"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/fixtures/lua/test_plug/success1/health.lua", "license": "mit", "size": 188} |
### File: test/functional/fixtures/lua/test_plug/success2/health.lua
local M = {}
M.check = function()
vim.health.start('another 1')
vim.health.ok('ok')
end
return M
| {"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/fixtures/lua/test_plug/success2/health.lua", "license": "mit", "size": 103} |
### File: test/functional/fixtures/middle/filen.lua
table.insert(_G.test_loadorder, 'mittel')
| {"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/fixtures/middle/filen.lua", "license": "mit", "size": 42} |
### File: test/functional/fixtures/nvim/after/filen.lua
table.insert(_G.test_loadorder, 'ordinary after')
| {"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/fixtures/nvim/after/filen.lua", "license": "mit", "size": 50} |
### File: test/functional/fixtures/nvim/filen.lua
table.insert(_G.test_loadorder, 'ordinary')
| {"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/fixtures/nvim/filen.lua", "license": "mit", "size": 44} |
### File: test/functional/fixtures/pack/foo/opt/bonus/autoload/bonus.vim
func bonus#secret()
return "halloj"
endfunc
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/pack/foo/opt/bonus/autoload/bonus.vim", "license": "mit", "size": 46} |
### File: test/functional/fixtures/pack/foo/opt/bonus/lua/bonus.lua
return {
launch = function()
return 'CPE 1704 TKS'
end,
}
| {"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/fixtures/pack/foo/opt/bonus/lua/bonus.lua", "license": "mit", "size": 66} |
### File: test/functional/fixtures/pack/foo/opt/funky/filen.lua
table.insert(_G.test_loadorder, 'funky!')
if not _G.nesty then
_G.nesty = true
local save_order = _G.test_loadorder
_G.test_loadorder = {}
_G.vim.o.pp = '' -- funky!
vim.cmd [[runtime! filen.lua ]]
_G.nested_order = _G.test_loadorder
_G.test... | {"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/fixtures/pack/foo/opt/funky/filen.lua", "license": "mit", "size": 301} |
### File: test/functional/fixtures/pack/foo/opt/superspecial/after/filen.lua
table.insert(_G.test_loadorder, 'SuperSpecial after')
| {"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/fixtures/pack/foo/opt/superspecial/after/filen.lua", "license": "mit", "size": 54} |
### File: test/functional/fixtures/pack/foo/opt/superspecial/filen.lua
table.insert(_G.test_loadorder, 'SuperSpecial')
| {"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/fixtures/pack/foo/opt/superspecial/filen.lua", "license": "mit", "size": 48} |
### File: test/functional/fixtures/pack/foo/start/bar/autoload/bar.vim
func bar#test()
return -3
endfunc
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/pack/foo/start/bar/autoload/bar.vim", "license": "mit", "size": 36} |
### File: test/functional/fixtures/pack/foo/start/bar/lua/bar.lua
return {
doit = function()
return 9003
end,
}
| {"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/fixtures/pack/foo/start/bar/lua/bar.lua", "license": "mit", "size": 54} |
### File: test/functional/fixtures/pack/foo/start/bar/lua/baz-quux.lua
return {
doit = function()
return 9004
end,
}
| {"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/fixtures/pack/foo/start/bar/lua/baz-quux.lua", "license": "mit", "size": 54} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/after/filen.lua
table.insert(_G.test_loadorder, 'FANCY after')
| {"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/fixtures/pack/foo/start/fancyplugin/after/filen.lua", "license": "mit", "size": 47} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/after/lua/fancy_y.lua
return 'I am fancy_y.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/fixtures/pack/foo/start/fancyplugin/after/lua/fancy_y.lua", "license": "mit", "size": 26} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/after/lua/fancy_z.lua
return 'I am fancy_z.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/fixtures/pack/foo/start/fancyplugin/after/lua/fancy_z.lua", "license": "mit", "size": 26} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/filen.lua
table.insert(_G.test_loadorder, 'FANCY')
| {"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/fixtures/pack/foo/start/fancyplugin/filen.lua", "license": "mit", "size": 41} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/lua/fancy_x.lua
return 'I am fancy_x.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/fixtures/pack/foo/start/fancyplugin/lua/fancy_x.lua", "license": "mit", "size": 26} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/lua/fancy_x/init.lua
return 'I am init.lua of fancy_x!'
| {"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/fixtures/pack/foo/start/fancyplugin/lua/fancy_x/init.lua", "license": "mit", "size": 35} |
### File: test/functional/fixtures/pack/foo/start/fancyplugin/lua/fancy_y/init.lua
return 'I am init.lua of fancy_y!'
| {"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/fixtures/pack/foo/start/fancyplugin/lua/fancy_y/init.lua", "license": "mit", "size": 35} |
### File: test/functional/fixtures/printargs-test.c
#include <stdio.h>
int main(int argc, char **argv)
{
for (int i=1; i<argc; i++) {
printf("arg%d=%s;", i, argv[i]);
}
return 0;
}
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/printargs-test.c", "license": "mit", "size": 140} |
### File: test/functional/fixtures/printenv-test.c
#include <stdio.h>
#ifdef MSWIN
# include <windows.h>
#else
# include <stdlib.h>
#endif
#ifdef MSWIN
int wmain(int argc, wchar_t **argv)
#else
int main(int argc, char **argv)
#endif
{
if (argc != 2) {
return 1;
}
#ifdef MSWIN
wchar_t *value = _wgetenv(argv... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/printenv-test.c", "license": "mit", "size": 1370} |
### File: test/functional/fixtures/shell-test.c
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <Windows.h>
#define usleep(usecs) Sleep(usecs/1000)
#else
#include <unistd.h>
#endif
static void flush_wait(void)
{
fflush(NULL);
usleep(10*1000); // Wait 10 ms.
}
static void help(... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/shell-test.c", "license": "mit", "size": 4072} |
### File: test/functional/fixtures/start/nvim-leftpad/autoload/leftpad.vim
function! leftpad#pad(str)
return ' '.a:str
endfunction
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/start/nvim-leftpad/autoload/leftpad.vim", "license": "mit", "size": 59} |
### File: test/functional/fixtures/start/nvim-leftpad/lua/async_leftpad.lua
return function(val, res)
local handle
handle = vim.uv.new_async(function()
_G[res] = require 'leftpad'(val)
handle:close()
end)
handle:send()
end
| {"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/fixtures/start/nvim-leftpad/lua/async_leftpad.lua", "license": "mit", "size": 163} |
### File: test/functional/fixtures/start/nvim-leftpad/lua/leftpad.lua
return function(str)
return '\t' .. str
end
| {"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/fixtures/start/nvim-leftpad/lua/leftpad.lua", "license": "mit", "size": 46} |
### File: test/functional/fixtures/startup-fail.lua
-- Test "nvim -l foo.lua …" with a Lua error.
local function main()
error('my pearls!!')
end
main()
| {"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/fixtures/startup-fail.lua", "license": "mit", "size": 106} |
### File: test/functional/fixtures/startup.lua
-- Test "nvim -l foo.lua …"
local function printbufs()
local bufs = ''
for _, v in ipairs(vim.api.nvim_list_bufs()) do
local b = vim.fn.bufname(v)
if b:len() > 0 then
bufs = ('%s %s'):format(bufs, b)
end
end
print(('bufs:%s'):format(bufs))
end
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/fixtures/startup.lua", "license": "mit", "size": 690} |
### File: test/functional/fixtures/streams-test.c
/// Helper program to exit and keep stdout open (like "xclip -i -loops 1").
#include <stdio.h>
#include <uv.h>
int main(int argc, char **argv)
{
uv_loop_t *loop = uv_default_loop();
uv_process_t child_req;
char * args[3];
args[0] = "sleep";
args[1] = "10";
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/streams-test.c", "license": "mit", "size": 676} |
### File: test/functional/fixtures/tty-test.c
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
#ifdef MSWIN
# include <windows.h>
#else
# include <unistd.h>
#endif
#define is_terminal(stream) (uv_guess_handle(fileno(stream)) == UV_TTY)
#define BUF_SIZE 0xfff
#define CTRL_C 0x03
uv_tty_t tty... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/functional/fixtures/tty-test.c", "license": "mit", "size": 4394} |
### File: test/functional/legacy/002_filename_recognition_spec.lua
-- Test if URLs are recognized as filenames by commands such as "gf". Here
-- we'll use `expand("<cfile>")` since "gf" would need to open the file.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
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/legacy/002_filename_recognition_spec.lua", "license": "mit", "size": 1651} |
### File: test/functional/legacy/004_bufenter_with_modelines_spec.lua
-- Test for autocommand that changes current buffer on BufEnter event.
-- Check if modelines are interpreted for the correct buffer.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_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/legacy/004_bufenter_with_modelines_spec.lua", "license": "mit", "size": 2049} |
### File: test/functional/legacy/005_bufleave_delete_buffer_spec.lua
-- Test for autocommand that deletes the current buffer on BufLeave event.
-- Also test deleting the last buffer, should give a new, empty buffer.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.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/legacy/005_bufleave_delete_buffer_spec.lua", "license": "mit", "size": 1732} |
### File: test/functional/legacy/007_ball_buffer_list_spec.lua
-- Test for autocommand that changes the buffer list, when doing ":ball".
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect
describe(':ball', functi... | {"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/legacy/007_ball_buffer_list_spec.lua", "license": "mit", "size": 1911} |
### File: test/functional/legacy/008_autocommands_spec.lua
-- Test for BufWritePre autocommand that deletes or unloads the buffer.
-- Test for BufUnload autocommand that unloads all other buffers.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local source = n.source
local clear, 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/legacy/008_autocommands_spec.lua", "license": "mit", "size": 2641} |
### File: test/functional/legacy/011_autocommands_spec.lua
-- Tests for autocommands
-- - FileWritePre writing a compressed file
-- - FileReadPost reading a compressed file
-- - BufNewFile reading a file template
-- - BufReadPre decompressing the file to be read
-- - FilterReadPre substituting characters in the ... | {"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/legacy/011_autocommands_spec.lua", "license": "mit", "size": 8029} |
### File: test/functional/legacy/012_directory_spec.lua
-- Tests for 'directory' option.
-- - ".", in same dir as file
-- - "./dir", in directory relative to file
-- - "dir", in directory relative to current dir
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local eq = t.eq
local 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/legacy/012_directory_spec.lua", "license": "mit", "size": 2370} |
### File: test/functional/legacy/015_alignment_spec.lua
-- Tests for :right on text with embedded TAB.
-- Also test formatting a paragraph.
-- Also test undo after ":%s" and formatting.
local n = require('test.functional.testnvim')()
local feed, insert = n.feed, n.insert
local clear, feed_command, expect = n.clear, 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/legacy/015_alignment_spec.lua", "license": "mit", "size": 6298} |
### File: test/functional/legacy/018_unset_smart_indenting_spec.lua
-- Tests for not doing smart indenting when it isn't set.
local n = require('test.functional.testnvim')()
local feed = n.feed
local clear = n.clear
local insert = n.insert
local expect = n.expect
local feed_command = n.feed_command
describe('unset s... | {"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/legacy/018_unset_smart_indenting_spec.lua", "license": "mit", "size": 657} |
### File: test/functional/legacy/019_smarttab_expandtab_spec.lua
-- Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
-- Also test that dv_ works correctly
local n = require('test.functional.testnvim')()
local feed, insert = n.feed, n.insert
local clear, feed_command, expect = n.clear, n.feed_command, 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/legacy/019_smarttab_expandtab_spec.lua", "license": "mit", "size": 1594} |
### File: test/functional/legacy/020_blockwise_visual_spec.lua
-- Tests Blockwise Visual when there are TABs before the text.
-- First test for undo working properly when executing commands from a register.
-- Also test this in an empty buffer.
local n = require('test.functional.testnvim')()
local clear, feed, 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/legacy/020_blockwise_visual_spec.lua", "license": "mit", "size": 978} |
### File: test/functional/legacy/021_control_wi_spec.lua
-- Tests for [ CTRL-I with a count and CTRL-W CTRL-I with a count
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect
describe('CTRL-W CTRL-I', 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/legacy/021_control_wi_spec.lua", "license": "mit", "size": 993} |
### File: test/functional/legacy/023_edit_arguments_spec.lua
-- Tests for complicated + argument to :edit command
local n = require('test.functional.testnvim')()
local clear, insert = n.clear, n.insert
local command, expect = n.command, n.expect
local poke_eventloop = n.poke_eventloop
describe(':edit', 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/legacy/023_edit_arguments_spec.lua", "license": "mit", "size": 1178} |
### File: test/functional/legacy/025_jump_tag_hidden_spec.lua
-- Test for jumping to a tag with 'hidden' set, with symbolic link in path of tag.
-- This only works for Unix, because of the symbolic link.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.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/legacy/025_jump_tag_hidden_spec.lua", "license": "mit", "size": 1900} |
### File: test/functional/legacy/026_execute_while_if_spec.lua
-- Test for :execute, :while and :if
local n = require('test.functional.testnvim')()
local clear = n.clear
local expect = n.expect
local source = n.source
local command = n.command
describe(':execute, :while and :if', function()
setup(clear)
it('is ... | {"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/legacy/026_execute_while_if_spec.lua", "license": "mit", "size": 1135} |
### File: test/functional/legacy/028_source_ctrl_v_spec.lua
-- Test for sourcing a file with CTRL-V's at the end of the line
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect
describe('CTRL-V at the end of the 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/legacy/028_source_ctrl_v_spec.lua", "license": "mit", "size": 975} |
### File: test/functional/legacy/029_join_spec.lua
-- Test for joining lines with marks in them (and with 'joinspaces' set/reset)
local n = require('test.functional.testnvim')()
local feed = n.feed
local clear = n.clear
local insert = n.insert
local expect = n.expect
local feed_command = n.feed_command
describe('joi... | {"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/legacy/029_join_spec.lua", "license": "mit", "size": 10520} |
### File: test/functional/legacy/030_fileformats_spec.lua
-- Test for a lot of variations of the 'fileformats' option
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local feed, clear, command = n.feed, n.clear, n.command
local eq, write_file = t.eq, t.write_file
local poke_eventloo... | {"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/legacy/030_fileformats_spec.lua", "license": "mit", "size": 9638} |
### File: test/functional/legacy/031_close_commands_spec.lua
-- Test for commands that close windows and/or buffers
-- :quit
-- :close
-- :hide
-- :only
-- :sall
-- :all
-- :ball
-- :buf
-- :edit
local n = require('test.functional.testnvim')()
local feed = n.feed
local clear = n.clear
local source = n.source
local in... | {"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/legacy/031_close_commands_spec.lua", "license": "mit", "size": 3278} |
### File: test/functional/legacy/033_lisp_indent_spec.lua
-- Test for 'lisp'
-- If the lisp feature is not enabled, this will fail!
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local command, expect = n.command, n.expect
local poke_eventloop = n.poke_eventloop
... | {"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/legacy/033_lisp_indent_spec.lua", "license": "mit", "size": 1906} |
### File: test/functional/legacy/034_user_function_spec.lua
-- Test for user functions.
-- Also test an <expr> mapping calling a function.
-- Also test that a builtin function cannot be replaced.
-- Also test for regression when calling arbitrary expression.
local n = require('test.functional.testnvim')()
local 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/legacy/034_user_function_spec.lua", "license": "mit", "size": 3078} |
### File: test/functional/legacy/035_increment_and_decrement_spec.lua
-- Test Ctrl-A and Ctrl-X, which increment and decrement decimal, hexadecimal,
-- and octal numbers.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, ... | {"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/legacy/035_increment_and_decrement_spec.lua", "license": "mit", "size": 1725} |
### File: test/functional/legacy/036_regexp_character_classes_spec.lua
-- Test character classes in regexp using regexpengine 0, 1, 2.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, command, expect = n.clear, n.command, n.expect
local source, write_file = n.source, t.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/legacy/036_regexp_character_classes_spec.lua", "license": "mit", "size": 8057} |
### File: test/functional/legacy/038_virtual_replace_spec.lua
-- Test Virtual replace mode.
local n = require('test.functional.testnvim')()
local feed = n.feed
local clear, feed_command, expect = n.clear, n.feed_command, n.expect
describe('Virtual replace mode', function()
setup(clear)
-- luacheck: ignore 621 (... | {"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/legacy/038_virtual_replace_spec.lua", "license": "mit", "size": 1746} |
### File: test/functional/legacy/039_visual_block_mode_commands_spec.lua
-- Test Visual block mode commands
-- And test "U" in Visual mode, also on German sharp S.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local api, eq = n.api, t.eq
local insert, feed = n.insert, n.feed
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/legacy/039_visual_block_mode_commands_spec.lua", "license": "mit", "size": 5449} |
### File: test/functional/legacy/043_magic_settings_spec.lua
-- Tests for regexp with various magic settings.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect
describe('regexp with magic settings', 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/legacy/043_magic_settings_spec.lua", "license": "mit", "size": 1395} |
### File: test/functional/legacy/046_multi_line_regexps_spec.lua
-- vim: set foldmethod=marker foldmarker=[[,]] :
-- Tests for multi-line regexps with ":s"
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local expect = n.expect
describe('multi-line regexp', 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/legacy/046_multi_line_regexps_spec.lua", "license": "mit", "size": 984} |
### File: test/functional/legacy/054_buffer_local_autocommands_spec.lua
-- Some tests for buffer-local autocommands
local n = require('test.functional.testnvim')()
local clear = n.clear
local expect = n.expect
local command = n.command
local fname = 'Xtest-functional-legacy-054'
describe('BufLeave <buffer>', functi... | {"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/legacy/054_buffer_local_autocommands_spec.lua", "license": "mit", "size": 907} |
### File: test/functional/legacy/055_list_and_dict_types_spec.lua
-- Tests for List and Dictionary types.
local n = require('test.functional.testnvim')()
local feed, source = n.feed, n.source
local clear, feed_command, expect = n.clear, n.feed_command, n.expect
describe('list and dictionary types', 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/legacy/055_list_and_dict_types_spec.lua", "license": "mit", "size": 18775} |
### File: test/functional/legacy/056_script_local_function_spec.lua
-- vim: set foldmethod=marker foldmarker=[[,]] :
-- Test for script-local function.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local expect = n.expect
describe('source function', 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/legacy/056_script_local_function_spec.lua", "license": "mit", "size": 760} |
### File: test/functional/legacy/057_sort_spec.lua
-- Tests for :sort command.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local insert, command, clear, expect, eq, poke_eventloop =
n.insert, n.command, n.clear, n.expect, t.eq, n.poke_eventloop
local exc_exec = n.exc_exec
des... | {"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/legacy/057_sort_spec.lua", "license": "mit", "size": 9783} |
### File: test/functional/legacy/060_exists_and_has_functions_spec.lua
-- Tests for the exists() and has() functions.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local source = n.source
local clear, expect = n.clear, n.expect
local write_file = t.write_file
describe('exists() 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/legacy/060_exists_and_has_functions_spec.lua", "license": "mit", "size": 22720} |
### File: test/functional/legacy/061_undo_tree_spec.lua
-- Tests for undo tree and :earlier and :later.
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local feed_command = n.feed_command
local write_file = t.write_file
local command = n.command
local source = n.source
local expect =... | {"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/legacy/061_undo_tree_spec.lua", "license": "mit", "size": 5961} |
### File: test/functional/legacy/063_match_and_matchadd_spec.lua
-- Tests for adjusting window and contents
local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
local clear, command = n.clear, n.command
local insert = n.insert
describe('063: Test for ":match", "matchadd... | {"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/legacy/063_match_and_matchadd_spec.lua", "license": "mit", "size": 1320} |
### File: test/functional/legacy/065_float_and_logic_operators_spec.lua
-- Test for floating point and logical operators.
local n = require('test.functional.testnvim')()
local insert, source = n.insert, n.source
local clear, expect = n.clear, n.expect
describe('floating point and logical operators', 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/legacy/065_float_and_logic_operators_spec.lua", "license": "mit", "size": 3683} |
### File: test/functional/legacy/066_visual_block_tab_spec.lua
-- vim: set foldmethod=marker foldmarker=[[,]] :
-- Test for visual block shift and tab characters.
local n = require('test.functional.testnvim')()
local clear, feed, insert = n.clear, n.feed, n.insert
local feed_command, expect = n.feed_command, n.expect... | {"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/legacy/066_visual_block_tab_spec.lua", "license": "mit", "size": 1760} |
### File: test/functional/legacy/067_augroup_exists_spec.lua
-- Test that groups and patterns are tested correctly when calling exists() for
-- autocommands.
local n = require('test.functional.testnvim')()
local clear = n.clear
local command, expect = n.command, n.expect
describe('augroup when calling exists()', 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/legacy/067_augroup_exists_spec.lua", "license": "mit", "size": 1869} |
### File: test/functional/legacy/068_text_formatting_spec.lua
local n = require('test.functional.testnvim')()
local feed = n.feed
local clear = n.clear
local insert = n.insert
local feed_command = n.feed_command
local expect = n.expect
describe('text formatting', function()
setup(clear)
-- luacheck: ignore 613 (... | {"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/legacy/068_text_formatting_spec.lua", "license": "mit", "size": 2792} |
### File: test/functional/legacy/069_multibyte_formatting_spec.lua
-- Test for multibyte text formatting.
-- Also test, that 'mps' with multibyte chars works.
-- And test "ra" on multibyte characters.
-- Also test byteidx() and byteidxcomp()
local t = require('test.testutil')
local n = require('test.functional.testnvi... | {"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/legacy/069_multibyte_formatting_spec.lua", "license": "mit", "size": 6154} |
### File: test/functional/legacy/072_undo_file_spec.lua
-- Tests for undo file.
-- Since this script is sourced we need to explicitly break changes up in
-- undo-able pieces. Do that by setting 'undolevels'.
local n = require('test.functional.testnvim')()
local feed, insert = n.feed, n.insert
local clear, feed_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/legacy/072_undo_file_spec.lua", "license": "mit", "size": 2559} |
### File: test/functional/legacy/074_global_var_in_viminfo_spec.lua
-- Tests for storing global variables in the .shada file
local t = require('test.testutil')
local n = require('test.functional.testnvim')()
local clear, command, eq, neq, eval, poke_eventloop =
n.clear, n.command, t.eq, t.neq, n.eval, n.poke_eventl... | {"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/legacy/074_global_var_in_viminfo_spec.lua", "license": "mit", "size": 2578} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.