mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fileinfo: rename os_file_info_get_id
This commit is contained in:
@@ -576,13 +576,13 @@ describe('fs function', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('os_file_info_get_id', function()
|
||||
describe('os_fileinfo_id', function()
|
||||
it('extracts ino/dev from file_info into file_id', function()
|
||||
local file_info = file_info_new()
|
||||
local file_id = file_id_new()
|
||||
local path = 'unit-test-directory/test.file'
|
||||
assert.is_true((fs.os_fileinfo(path, file_info)))
|
||||
fs.os_file_info_get_id(file_info, file_id)
|
||||
fs.os_fileinfo_id(file_info, file_id)
|
||||
eq(file_info[0].stat.st_ino, file_id[0].inode)
|
||||
eq(file_info[0].stat.st_dev, file_id[0].device_id)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user