Commit 9253f70
committed
coverage: fix loaded function name
Now we load flatten functions for spaces with `@flatten` source. Source
starting with @ assumes that it describes the file name, yet here it
isn't. Then luacov fails to find "flatten" file on coverage info build.
When we do not specify source explicitly, the whole string became the
source. It will not confuse luacov anymore (it just ignores them), and
it's more helpful for debug.
1. https://www.lua.org/manual/5.2/manual.html#pdf-load
Closes #2491 parent b5e2b27 commit 9253f70
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
0 commit comments