Skip to content
Snippets Groups Projects
Commit 3f2b7f73 authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Igor Munkin
Browse files

test: fix typos in metrics helpers

NO_CHANGELOG=internal
NO_DOC=internal
NO_TEST=internal
parent 8f945a58
No related branches found
No related tags found
No related merge requests found
...@@ -12,16 +12,16 @@ local rock_utils = require('third_party.metrics.test.rock_utils') ...@@ -12,16 +12,16 @@ local rock_utils = require('third_party.metrics.test.rock_utils')
rock_utils.remove_override('metrics') rock_utils.remove_override('metrics')
rock_utils.assert_builtin('metrics') rock_utils.assert_builtin('metrics')
-- There are may tests in metrics. Here we check that no one has been -- There are many tests in metrics. Here we check that no one has been
-- forgotten to include. -- forgotten to include.
-- Borrowed from -- Borrowed from
-- https://github.com/tarantool/luatest/blob/eef05dd16cc7f62380cedbb9271184223aa395a9/luatest/loader.lua#L6-L38 -- https://github.com/tarantool/luatest/blob/eef05dd16cc7f62380cedbb9271184223aa395a9/luatest/loader.lua#L6-L38
-- Can't just require luatest internals since the function is not exposed. -- Can't just require luatest internals since the function is not exposed.
-- Returns list of all nested files within given path. -- Returns a list of all nested files within a given path.
-- As fio.glob does not support `**/*` this method adds `/*` to path and glog it -- As the `fio.glob` function does not support `**/*`, this method adds `/*` to
-- until result is empty. -- the path and globs it until result is empty.
local function glob_recursive(path) local function glob_recursive(path)
local pattern = path local pattern = path
local result = {} local result = {}
...@@ -35,10 +35,10 @@ local function glob_recursive(path) ...@@ -35,10 +35,10 @@ local function glob_recursive(path)
return result return result
end end
-- If directory is given then it's scanned recursievly for files -- If a directory is given, then it's scanned recursively for the files
-- ending with `_test.lua`. -- ending with `_test.lua`.
-- If `.lua` file is given then it's used as is. -- If a `.lua` file is given then it's used as is.
-- Resulting list of files is mapped to lua's module names. -- The resulting list of files is mapped to Lua's module names.
local function get_test_modules_list(path) local function get_test_modules_list(path)
local files local files
if path:endswith('.lua') then if path:endswith('.lua') then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment