We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a68578 commit 3fed389Copy full SHA for 3fed389
coverage.lua
@@ -51,10 +51,14 @@ local function start(testname)
51
local getinfo = debug.getinfo
52
local sub = string.sub
53
debug.sethook(function(event,line)
54
- local s = getinfo(2,"S").short_src
+ local s = getinfo(2,"S").source
55
-- startup logging gets all the serpent loads of `global`
56
-- serpent itself will also always show up as one of these
57
- if sub(s,1,7) == "[string" then return end
+ if sub(s,1,1) ~= "@" then
58
+ return
59
+ else
60
+ s = sub(s,2)
61
+ end
62
local fileinfo = test[s]
63
if not fileinfo then
64
fileinfo = {}
0 commit comments