unittests: Use more adequate names for some functions

This commit is contained in:
ZyX
2017-03-12 02:54:23 +03:00
parent 9d1b439fb7
commit bf68907778
4 changed files with 82 additions and 56 deletions

View File

@@ -5,17 +5,18 @@ local itp = helpers.gen_itp(it)
local eq = helpers.eq
local neq = helpers.neq
local cimport = helpers.cimport
local deferred_call = helpers.deferred_call
local separate_cleanup = helpers.separate_cleanup
local child_call_once = helpers.child_call_once
local child_cleanup_once = helpers.child_cleanup_once
local lib = cimport('./src/nvim/os/os.h', './src/nvim/fileio.h')
describe('tempfile related functions', function()
before_each(deferred_call(function()
lib.vim_deltempdir()
end))
separate_cleanup(function()
lib.vim_deltempdir()
before_each(function()
local function vim_deltempdir()
lib.vim_deltempdir()
end
child_call_once(vim_deltempdir)
child_cleanup_once(vim_deltempdir)
end)
local vim_gettempdir = function()