Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
3f2b7f73
Commit
3f2b7f73
authored
1 year ago
by
Sergey Bronnikov
Committed by
Igor Munkin
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
test: fix typos in metrics helpers
NO_CHANGELOG=internal NO_DOC=internal NO_TEST=internal
parent
8f945a58
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/metrics-luatest/helper.lua
+7
-7
7 additions, 7 deletions
test/metrics-luatest/helper.lua
with
7 additions
and
7 deletions
test/metrics-luatest/helper.lua
+
7
−
7
View file @
3f2b7f73
...
@@ -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 ma
n
y 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 recursi
e
vly for files
-- If
a
directory is given
,
then it's scanned recursiv
e
ly 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.
--
R
esulting list of files is mapped to
l
ua's module names.
--
The r
esulting list of files is mapped to
L
ua'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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment