Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
e6703579
Commit
e6703579
authored
1 year ago
by
Patrycja Rosa
Committed by
alice
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
testing/luacov: upgrade to 0.15.0
parent
372ae9fe
No related branches found
No related tags found
1 merge request
!47896
testing/luacov: upgrade to 0.15.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testing/luacov/APKBUILD
+4
-4
4 additions, 4 deletions
testing/luacov/APKBUILD
testing/luacov/reporter_fix.lua.patch
+13
-11
13 additions, 11 deletions
testing/luacov/reporter_fix.lua.patch
with
17 additions
and
15 deletions
testing/luacov/APKBUILD
+
4
−
4
View file @
e6703579
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
# Maintainer: Hani Shawa <hani.shawa@ev-box.com>
# Maintainer: Hani Shawa <hani.shawa@ev-box.com>
pkgname
=
luacov
pkgname
=
luacov
_rockname
=
${
pkgname
#lua-
}
_rockname
=
${
pkgname
#lua-
}
pkgver
=
0.1
4
.0
pkgver
=
0.1
5
.0
pkgrel
=
1
pkgrel
=
0
pkgdesc
=
"simple coverage analysis tool for Lua scripts"
pkgdesc
=
"simple coverage analysis tool for Lua scripts"
url
=
"https://github.com/keplerproject/luacov"
url
=
"https://github.com/keplerproject/luacov"
license
=
"MIT"
license
=
"MIT"
...
@@ -51,6 +51,6 @@ _subpackage() {
...
@@ -51,6 +51,6 @@ _subpackage() {
}
}
sha512sums
=
"
sha512sums
=
"
44ea158ce597f705d80b9768676e401804daea91b9c2afb146a8d25aae612e895e4f42a29c4b7b3438659c596fa500af5d23b66b7f3477459747ad06ca9b7ffa
luacov-0.1
4
.0.tar.gz
cab02c540aad905db1fecd7f62545157c8ff9ea82f9ea602bff7b6093e3940a3a316e212a2efe30fa2439435dae6cd4005c2ee41de6b937d3e5f447bc2128a59
luacov-0.1
5
.0.tar.gz
c6896588a1baece398ceccc346f3481151a59d63cff2d5a10be7f14318a65727ba52cb0b5e5f517466d9cd61835bd7c5af4f1c8da9aedb18008a6042f9acd593
reporter_fix.lua.patch
8694e1d5f72da049909d1a868c5b159721c81d20ce5cf9061069732cf6d52e24a9453ad172dec47baf605ed45a8501a7f5131d6bf7609d6b81d1e1eb451e5ce9
reporter_fix.lua.patch
"
"
This diff is collapsed.
Click to expand it.
testing/luacov/reporter_fix.lua.patch
+
13
−
11
View file @
e6703579
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua
index 0aadce1..d041d10 100644
--- a/src/luacov/reporter.lua
--- a/src/luacov/reporter.lua
+++ b/src/luacov/reporter.lua
+++ b/src/luacov/reporter.lua
@@ -
25
,7 +
25
,7 @@
@@ -
33
,7 +
33
,7 @@
local function dirtree(dir)
entry=directory..
"/"
..entry
entry=directory..
dir_sep
..entry
local attr=lfs.attributes(entry)
local attr=lfs.attributes(entry)
coroutine.yield(entry,attr)
coroutine.yield(entry,attr)
- if attr.mode == "directory" then
- if attr.mode == "directory" then
...
@@ -9,12 +11,12 @@
...
@@ -9,12 +11,12 @@
yieldtree(entry)
yieldtree(entry)
end
end
end
end
@@ -
95
,7 +
95
,7 @@
@@ -
130
,7 +
130
,7 @@
function ReporterBase:new(conf)
os.exit(1
)
local function add_empty_dir_coverage_data(directory_path
)
end
for filename, attr in dirtree(
"./"
) do
for filename, attr in dirtree(
directory_path
) do
- if attr.mode == "file" and fileMatches(filename, '.%.lua$') then
-
if attr.mode == "file" and fileMatches(filename, '.%.lua$') then
+ if attr and attr.mode == "file" and fileMatches(filename, '.%.lua$') then
+
if attr and attr.mode == "file" and fileMatches(filename, '.%.lua$') then
local file_stats = {}
add_empty_file_coverage_data(filename)
file_stats[0] = 0
end
if luacov.file_included(filename) th
en
en
d
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