Common library code for other vc*.nvim projects.

deprecation: vim.loop -> vim.uv.

+4 -4
+4 -4
lua/vclib/testing.lua
··· 111 end 112 113 local function _run_test_suite(suite_name, test_suite) 114 - local suite_start_time = vim.loop.hrtime() 115 local suite_failed = 0 116 local suite_total = 0 117 local test_cases = test_suite.test_cases ··· 135 end 136 end 137 138 - local duration_ms = (vim.loop.hrtime() - suite_start_time) / 1e6 139 140 local symbol 141 local outcome ··· 152 end 153 154 function M.run_tests(test_modules) 155 - local start_time = vim.loop.hrtime() 156 local failed = 0 157 local total = 0 158 for _, test_module_name in ipairs(test_modules) do ··· 167 end 168 end 169 170 - local total_duration_ms = (vim.loop.hrtime() - start_time) / 1e6 171 output "--------------------------------" 172 local timing = string.format("(%.1fms)", total_duration_ms) 173 local msg
··· 111 end 112 113 local function _run_test_suite(suite_name, test_suite) 114 + local suite_start_time = vim.uv.hrtime() 115 local suite_failed = 0 116 local suite_total = 0 117 local test_cases = test_suite.test_cases ··· 135 end 136 end 137 138 + local duration_ms = (vim.uv.hrtime() - suite_start_time) / 1e6 139 140 local symbol 141 local outcome ··· 152 end 153 154 function M.run_tests(test_modules) 155 + local start_time = vim.uv.hrtime() 156 local failed = 0 157 local total = 0 158 for _, test_module_name in ipairs(test_modules) do ··· 167 end 168 end 169 170 + local total_duration_ms = (vim.uv.hrtime() - start_time) / 1e6 171 output "--------------------------------" 172 local timing = string.format("(%.1fms)", total_duration_ms) 173 local msg