Commit 9b387226 authored by François Perrad's avatar François Perrad
Browse files

regen coverage including Lua 5.4.2

parent 34ee368e
Pipeline #369118 passed with stages
in 25 seconds
......@@ -21,7 +21,7 @@ See the given coverage :
- [Lua 5.1.5](cover_lua515/src/index.html),
- [Lua 5.2.4](cover_lua524/src/index.html),
- [Lua 5.3.6](cover_lua536/src/index.html),
- [Lua 5.4.1](cover_lua541/src/index.html)
- [Lua 5.4.2](cover_lua542/src/index.html)
It uses the
[Test Anything Protocol](http://en.wikipedia.org/wiki/Test_Anything_Protocol)
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......@@ -690,15 +690,15 @@
<a name="624"><span class="lineNum"> 624 </span> : /* }====================================================== */</a>
<a name="625"><span class="lineNum"> 625 </span> : </a>
<a name="626"><span class="lineNum"> 626 </span> : </a>
<a name="627"><span class="lineNum"> 627 </span><span class="lineCov"> 264457 : static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {</span></a>
<a name="627"><span class="lineNum"> 627 </span><span class="lineCov"> 264490 : static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {</span></a>
<a name="628"><span class="lineNum"> 628 </span> : (void)ud;</a>
<a name="629"><span class="lineNum"> 629 </span> : (void)osize;</a>
<a name="630"><span class="lineNum"> 630 </span><span class="lineCov"> 264457 : if (nsize == 0) {</span></a>
<a name="631"><span class="lineNum"> 631 </span><span class="lineCov"> 121703 : free(ptr);</span></a>
<a name="632"><span class="lineNum"> 632 </span><span class="lineCov"> 121703 : return NULL;</span></a>
<a name="630"><span class="lineNum"> 630 </span><span class="lineCov"> 264490 : if (nsize == 0) {</span></a>
<a name="631"><span class="lineNum"> 631 </span><span class="lineCov"> 121716 : free(ptr);</span></a>
<a name="632"><span class="lineNum"> 632 </span><span class="lineCov"> 121716 : return NULL;</span></a>
<a name="633"><span class="lineNum"> 633 </span> : }</a>
<a name="634"><span class="lineNum"> 634 </span> : else</a>
<a name="635"><span class="lineNum"> 635 </span><span class="lineCov"> 142754 : return realloc(ptr, nsize);</span></a>
<a name="635"><span class="lineNum"> 635 </span><span class="lineCov"> 142774 : return realloc(ptr, nsize);</span></a>
<a name="636"><span class="lineNum"> 636 </span> : }</a>
<a name="637"><span class="lineNum"> 637 </span> : </a>
<a name="638"><span class="lineNum"> 638 </span> : </a>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
This diff is collapsed.
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......@@ -360,8 +360,8 @@
<a name="294"><span class="lineNum"> 294 </span><span class="lineCov"> 23217 : L-&gt;savedpc = p-&gt;code; /* starting point */</span></a>
<a name="295"><span class="lineNum"> 295 </span><span class="lineCov"> 23217 : ci-&gt;tailcalls = 0;</span></a>
<a name="296"><span class="lineNum"> 296 </span><span class="lineCov"> 23217 : ci-&gt;nresults = nresults;</span></a>
<a name="297"><span class="lineNum"> 297 </span><span class="lineCov"> 140899 : for (st = L-&gt;top; st &lt; ci-&gt;top; st++)</span></a>
<a name="298"><span class="lineNum"> 298 </span><span class="lineCov"> 117682 : setnilvalue(st);</span></a>
<a name="297"><span class="lineNum"> 297 </span><span class="lineCov"> 140902 : for (st = L-&gt;top; st &lt; ci-&gt;top; st++)</span></a>
<a name="298"><span class="lineNum"> 298 </span><span class="lineCov"> 117685 : setnilvalue(st);</span></a>
<a name="299"><span class="lineNum"> 299 </span><span class="lineCov"> 23217 : L-&gt;top = ci-&gt;top;</span></a>
<a name="300"><span class="lineNum"> 300 </span><span class="lineCov"> 23217 : if (L-&gt;hookmask &amp; LUA_MASKCALL) {</span></a>
<a name="301"><span class="lineNum"> 301 </span><span class="lineCov"> 306 : L-&gt;savedpc++; /* hooks assume 'pc' is already incremented */</span></a>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......@@ -178,29 +178,29 @@
<a name="112"><span class="lineNum"> 112 </span><span class="lineCov"> 10839 : }</span></a>
<a name="113"><span class="lineNum"> 113 </span> : </a>
<a name="114"><span class="lineNum"> 114 </span> : </a>
<a name="115"><span class="lineNum"> 115 </span><span class="lineCov"> 2017 : Proto *luaF_newproto (lua_State *L) {</span></a>
<a name="116"><span class="lineNum"> 116 </span><span class="lineCov"> 2017 : Proto *f = luaM_new(L, Proto);</span></a>
<a name="117"><span class="lineNum"> 117 </span><span class="lineCov"> 2017 : luaC_link(L, obj2gco(f), LUA_TPROTO);</span></a>
<a name="118"><span class="lineNum"> 118 </span><span class="lineCov"> 2017 : f-&gt;k = NULL;</span></a>
<a name="119"><span class="lineNum"> 119 </span><span class="lineCov"> 2017 : f-&gt;sizek = 0;</span></a>
<a name="120"><span class="lineNum"> 120 </span><span class="lineCov"> 2017 : f-&gt;p = NULL;</span></a>
<a name="121"><span class="lineNum"> 121 </span><span class="lineCov"> 2017 : f-&gt;sizep = 0;</span></a>
<a name="122"><span class="lineNum"> 122 </span><span class="lineCov"> 2017 : f-&gt;code = NULL;</span></a>
<a name="123"><span class="lineNum"> 123 </span><span class="lineCov"> 2017 : f-&gt;sizecode = 0;</span></a>
<a name="124"><span class="lineNum"> 124 </span><span class="lineCov"> 2017 : f-&gt;sizelineinfo = 0;</span></a>
<a name="125"><span class="lineNum"> 125 </span><span class="lineCov"> 2017 : f-&gt;sizeupvalues = 0;</span></a>
<a name="126"><span class="lineNum"> 126 </span><span class="lineCov"> 2017 : f-&gt;nups = 0;</span></a>
<a name="127"><span class="lineNum"> 127 </span><span class="lineCov"> 2017 : f-&gt;upvalues = NULL;</span></a>
<a name="128"><span class="lineNum"> 128 </span><span class="lineCov"> 2017 : f-&gt;numparams = 0;</span></a>
<a name="129"><span class="lineNum"> 129 </span><span class="lineCov"> 2017 : f-&gt;is_vararg = 0;</span></a>
<a name="130"><span class="lineNum"> 130 </span><span class="lineCov"> 2017 : f-&gt;maxstacksize = 0;</span></a>
<a name="131"><span class="lineNum"> 131 </span><span class="lineCov"> 2017 : f-&gt;lineinfo = NULL;</span></a>
<a name="132"><span class="lineNum"> 132 </span><span class="lineCov"> 2017 : f-&gt;sizelocvars = 0;</span></a>
<a name="133"><span class="lineNum"> 133 </span><span class="lineCov"> 2017 : f-&gt;locvars = NULL;</span></a>
<a name="134"><span class="lineNum"> 134 </span><span class="lineCov"> 2017 : f-&gt;linedefined = 0;</span></a>
<a name="135"><span class="lineNum"> 135 </span><span class="lineCov"> 2017 : f-&gt;lastlinedefined = 0;</span></a>
<a name="136"><span class="lineNum"> 136 </span><span class="lineCov"> 2017 : f-&gt;source = NULL;</span></a>
<a name="137"><span class="lineNum"> 137 </span><span class="lineCov"> 2017 : return f;</span></a>
<a name="115"><span class="lineNum"> 115 </span><span class="lineCov"> 2018 : Proto *luaF_newproto (lua_State *L) {</span></a>
<a name="116"><span class="lineNum"> 116 </span><span class="lineCov"> 2018 : Proto *f = luaM_new(L, Proto);</span></a>
<a name="117"><span class="lineNum"> 117 </span><span class="lineCov"> 2018 : luaC_link(L, obj2gco(f), LUA_TPROTO);</span></a>
<a name="118"><span class="lineNum"> 118 </span><span class="lineCov"> 2018 : f-&gt;k = NULL;</span></a>
<a name="119"><span class="lineNum"> 119 </span><span class="lineCov"> 2018 : f-&gt;sizek = 0;</span></a>
<a name="120"><span class="lineNum"> 120 </span><span class="lineCov"> 2018 : f-&gt;p = NULL;</span></a>
<a name="121"><span class="lineNum"> 121 </span><span class="lineCov"> 2018 : f-&gt;sizep = 0;</span></a>
<a name="122"><span class="lineNum"> 122 </span><span class="lineCov"> 2018 : f-&gt;code = NULL;</span></a>
<a name="123"><span class="lineNum"> 123 </span><span class="lineCov"> 2018 : f-&gt;sizecode = 0;</span></a>
<a name="124"><span class="lineNum"> 124 </span><span class="lineCov"> 2018 : f-&gt;sizelineinfo = 0;</span></a>
<a name="125"><span class="lineNum"> 125 </span><span class="lineCov"> 2018 : f-&gt;sizeupvalues = 0;</span></a>
<a name="126"><span class="lineNum"> 126 </span><span class="lineCov"> 2018 : f-&gt;nups = 0;</span></a>
<a name="127"><span class="lineNum"> 127 </span><span class="lineCov"> 2018 : f-&gt;upvalues = NULL;</span></a>
<a name="128"><span class="lineNum"> 128 </span><span class="lineCov"> 2018 : f-&gt;numparams = 0;</span></a>
<a name="129"><span class="lineNum"> 129 </span><span class="lineCov"> 2018 : f-&gt;is_vararg = 0;</span></a>
<a name="130"><span class="lineNum"> 130 </span><span class="lineCov"> 2018 : f-&gt;maxstacksize = 0;</span></a>
<a name="131"><span class="lineNum"> 131 </span><span class="lineCov"> 2018 : f-&gt;lineinfo = NULL;</span></a>
<a name="132"><span class="lineNum"> 132 </span><span class="lineCov"> 2018 : f-&gt;sizelocvars = 0;</span></a>
<a name="133"><span class="lineNum"> 133 </span><span class="lineCov"> 2018 : f-&gt;locvars = NULL;</span></a>
<a name="134"><span class="lineNum"> 134 </span><span class="lineCov"> 2018 : f-&gt;linedefined = 0;</span></a>
<a name="135"><span class="lineNum"> 135 </span><span class="lineCov"> 2018 : f-&gt;lastlinedefined = 0;</span></a>
<a name="136"><span class="lineNum"> 136 </span><span class="lineCov"> 2018 : f-&gt;source = NULL;</span></a>
<a name="137"><span class="lineNum"> 137 </span><span class="lineCov"> 2018 : return f;</span></a>
<a name="138"><span class="lineNum"> 138 </span> : }</a>
<a name="139"><span class="lineNum"> 139 </span> : </a>
<a name="140"><span class="lineNum"> 140 </span> : </a>
......
This diff is collapsed.
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
This diff is collapsed.
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......
......@@ -37,7 +37,7 @@
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2020-10-25 08:53:17</td>
<td class="headerValue">2020-12-03 21:20:28</td>
<td></td>
</tr>
<tr>
......@@ -109,23 +109,23 @@
<a name="43"><span class="lineNum"> 43 </span> : #define MINSIZEARRAY 4</a>
<a name="44"><span class="lineNum"> 44 </span> : </a>
<a name="45"><span class="lineNum"> 45 </span> : </a>
<a name="46"><span class="lineNum"> 46 </span><span class="lineCov"> 17753 : void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems,</span></a>
<a name="46"><span class="lineNum"> 46 </span><span class="lineCov"> 17758 : void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems,</span></a>
<a name="47"><span class="lineNum"> 47 </span> : int limit, const char *errormsg) {</a>
<a name="48"><span class="lineNum"> 48 </span> : void *newblock;</a>
<a name="49"><span class="lineNum"> 49 </span> : int newsize;</a>
<a name="50"><span class="lineNum"> 50 </span><span class="lineCov"> 17753 : if (*size &gt;= limit/2) { /* cannot double it? */</span></a>
<a name="50"><span class="lineNum"> 50 </span><span class="lineCov"> 17758 : if (*size &gt;= limit/2) { /* cannot double it? */</span></a>
<a name="51"><span class="lineNum"> 51 </span><span class="lineNoCov"> 0 : if (*size &gt;= limit) /* cannot grow even a little? */</span></a>
<a name="52"><span class="lineNum"> 52 </span><span class="lineNoCov"> 0 : luaG_runerror(L, errormsg);</span></a>
<a name="53"><span class="lineNum"> 53 </span><span class="lineNoCov"> 0 : newsize = limit; /* still have at least one free place */</span></a>
<a name="54"><span class="lineNum"> 54 </span> : }</a>
<a name="55"><span class="lineNum"> 55 </span> : else {</a>
<a name="56"><span class="lineNum"> 56 </span><span class="lineCov"> 17753 : newsize = (*size)*2;</span></a>
<a name="57"><span class="lineNum"> 57 </span><span class="lineCov"> 17753 : if (newsize &lt; MINSIZEARRAY)</span></a>
<a name="58"><span class="lineNum"> 58 </span><span class="lineCov"> 8191 : newsize = MINSIZEARRAY; /* minimum size */</span></a>
<a name="56"><span class="lineNum"> 56 </span><span class="lineCov"> 17758 : newsize = (*size)*2;</span></a>
<a name="57"><span class="lineNum"> 57 </span><span class="lineCov"> 17758 : if (newsize &lt; MINSIZEARRAY)</span></a>
<a name="58"><span class="lineNum"> 58 </span><span class="lineCov"> 8194 : newsize = MINSIZEARRAY; /* minimum size */</span></a>
<a name="59"><span class="lineNum"> 59 </span> : }</a>
<a name="60"><span class="lineNum"> 60 </span><span class="lineCov"> 17753 : newblock = luaM_reallocv(L, block, *size, newsize, size_elems);</span></a>
<a name="61"><span class="lineNum"> 61 </span><span class="lineCov"> 17753 : *size = newsize; /* update only when everything else is OK */</span></a>
<a name="62"><span class="lineNum"> 62 </span><span class="lineCov"> 17753 : return newblock;</span></a>
<a name="60"><span class="lineNum"> 60 </span><span class="lineCov"> 17758 : newblock = luaM_reallocv(L, block, *size, newsize, size_elems);</span></a>
<a name="61"><span class="lineNum"> 61 </span><span class="lineCov"> 17758 : *size = newsize; /* update only when everything else is OK */</span></a>
<a name="62"><span class="lineNum"> 62 </span><span class="lineCov"> 17758 : return newblock;</span></a>
<a name="63"><span class="lineNum"> 63 </span> : }</a>
<a name="64"><span class="lineNum"> 64 </span> : </a>
<a name="65"><span class="lineNum"> 65 </span> : </a>
......@@ -139,15 +139,15 @@
<a name="73"><span class="lineNum"> 73 </span> : /*</a>
<a name="74"><span class="lineNum"> 74 </span> : ** generic allocation routine.</a>
<a name="75"><span class="lineNum"> 75 </span> : */</a>
<a name="76"><span class="lineNum"> 76 </span><span class="lineCov"> 264267 : void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {</span></a>
<a name="77"><span class="lineNum"> 77 </span><span class="lineCov"> 264267 : global_State *g = G(L);</span></a>
<a name="76"><span class="lineNum"> 76 </span><span class="lineCov"> 264300 : void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {</span></a>
<a name="77"><span class="lineNum"> 77 </span><span class="lineCov"> 264300 : global_State *g = G(L);</span></a>
<a name="78"><span class="lineNum"> 78 </span> : lua_assert((osize == 0) == (block == NULL));</a>
<a name="79"><span class="lineNum"> 79 </span><span class="lineCov"> 264267 : block = (*g-&gt;frealloc)(g-&gt;ud, block, osize, nsize);</span></a>
<a name="80"><span class="lineNum"> 80 </span><span class="lineCov"> 264267 : if (block == NULL &amp;&amp; nsize &gt; 0)</span></a>
<a name="79"><span class="lineNum"> 79 </span><span class="lineCov"> 264300 : block = (*g-&gt;frealloc)(g-&gt;ud, block, osize, nsize);</span></a>
<a name="80"><span class="lineNum"> 80 </span><span class="lineCov"> 264300 : if (block == NULL &amp;&amp; nsize &gt; 0)</span></a>
<a name="81"><span class="lineNum"> 81 </span><span class="lineNoCov"> 0 : luaD_throw(L, LUA_ERRMEM);</span></a>
<a name="82"><span class="lineNum"> 82 </span> : lua_assert((nsize == 0) == (block == NULL));</a>
<a name="83"><span class="lineNum"> 83 </span><span class="lineCov"> 264267 : g-&gt;totalbytes = (g-&gt;totalbytes - osize) + nsize;</span></a>
<a name="84"><span class="lineNum"> 84 </span><span class="lineCov"> 264267 : return block;</span></a>
<a name="83"><span class="lineNum"> 83 </span><span class="lineCov"> 264300 : g-&gt;totalbytes = (g-&gt;totalbytes - osize) + nsize;</span></a>
<a name="84"><span class="lineNum"> 84 </span><span class="lineCov"> 264300 : return block;</span></a>
<a name="85"><span class="lineNum"> 85 </span> : }</a>
<a name="86"><span class="lineNum"> 86 </span> : </a>
</pre>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment