Skip to content

Commit

Permalink
debug des tests pour faire passer le CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent228 committed Aug 22, 2024
1 parent db03489 commit 444186a
Show file tree
Hide file tree
Showing 16 changed files with 498 additions and 483 deletions.
102 changes: 51 additions & 51 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">54.74% </span>
<span class="strong">81% </span>
<span class="quiet">Statements</span>
<span class='fraction'>98/179</span>
<span class='fraction'>145/179</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">25% </span>
<span class="strong">61.66% </span>
<span class="quiet">Branches</span>
<span class='fraction'>15/60</span>
<span class='fraction'>37/60</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">41.93% </span>
<span class="strong">96.77% </span>
<span class="quiet">Functions</span>
<span class='fraction'>13/31</span>
<span class='fraction'>30/31</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">54.49% </span>
<span class="strong">81.46% </span>
<span class="quiet">Lines</span>
<span class='fraction'>97/178</span>
<span class='fraction'>145/178</span>
</div>


Expand All @@ -61,7 +61,7 @@ <h1>All files</h1>
</div>
</template>
</div>
<div class='status-line medium'></div>
<div class='status-line high'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
Expand All @@ -80,17 +80,17 @@ <h1>All files</h1>
</thead>
<tbody><tr>
<td class="file high" data-value="src"><a href="src/index.html">src</a></td>
<td data-value="92.85" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 92%"></div><div class="cover-empty" style="width: 8%"></div></div>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="92.85" class="pct high">92.85%</td>
<td data-value="14" class="abs high">13/14</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="14" class="abs high">14/14</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="1" class="abs low">0/1</td>
<td data-value="92.85" class="pct high">92.85%</td>
<td data-value="14" class="abs high">13/14</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="14" class="abs high">14/14</td>
</tr>

<tr>
Expand All @@ -104,53 +104,53 @@ <h1>All files</h1>
<td data-value="2" class="abs medium">1/2</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="7" class="abs high">6/7</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="7" class="abs high">7/7</td>
</tr>

<tr>
<td class="file low" data-value="src/controllers"><a href="src/controllers/index.html">src/controllers</a></td>
<td data-value="41.5" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 41%"></div><div class="cover-empty" style="width: 59%"></div></div>
<td class="file high" data-value="src/controllers"><a href="src/controllers/index.html">src/controllers</a></td>
<td data-value="83.01" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 83%"></div><div class="cover-empty" style="width: 17%"></div></div>
</td>
<td data-value="41.5" class="pct low">41.5%</td>
<td data-value="53" class="abs low">22/53</td>
<td data-value="20" class="pct low">20%</td>
<td data-value="30" class="abs low">6/30</td>
<td data-value="33.33" class="pct low">33.33%</td>
<td data-value="12" class="abs low">4/12</td>
<td data-value="41.5" class="pct low">41.5%</td>
<td data-value="53" class="abs low">22/53</td>
<td data-value="83.01" class="pct high">83.01%</td>
<td data-value="53" class="abs high">44/53</td>
<td data-value="56.66" class="pct medium">56.66%</td>
<td data-value="30" class="abs medium">17/30</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="12" class="abs high">12/12</td>
<td data-value="83.01" class="pct high">83.01%</td>
<td data-value="53" class="abs high">44/53</td>
</tr>

<tr>
<td class="file medium" data-value="src/middleware"><a href="src/middleware/index.html">src/middleware</a></td>
<td data-value="76.92" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 76%"></div><div class="cover-empty" style="width: 24%"></div></div>
<td class="file high" data-value="src/middleware"><a href="src/middleware/index.html">src/middleware</a></td>
<td data-value="92.3" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 92%"></div><div class="cover-empty" style="width: 8%"></div></div>
</td>
<td data-value="76.92" class="pct medium">76.92%</td>
<td data-value="13" class="abs medium">10/13</td>
<td data-value="66.66" class="pct medium">66.66%</td>
<td data-value="6" class="abs medium">4/6</td>
<td data-value="92.3" class="pct high">92.3%</td>
<td data-value="13" class="abs high">12/13</td>
<td data-value="83.33" class="pct high">83.33%</td>
<td data-value="6" class="abs high">5/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="76.92" class="pct medium">76.92%</td>
<td data-value="13" class="abs medium">10/13</td>
<td data-value="92.3" class="pct high">92.3%</td>
<td data-value="13" class="abs high">12/13</td>
</tr>

<tr>
<td class="file low" data-value="src/models"><a href="src/models/index.html">src/models</a></td>
<td data-value="36.23" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 36%"></div><div class="cover-empty" style="width: 64%"></div></div>
<td class="file medium" data-value="src/models"><a href="src/models/index.html">src/models</a></td>
<td data-value="68.11" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 68%"></div><div class="cover-empty" style="width: 32%"></div></div>
</td>
<td data-value="36.23" class="pct low">36.23%</td>
<td data-value="69" class="abs low">25/69</td>
<td data-value="10" class="pct low">10%</td>
<td data-value="20" class="abs low">2/20</td>
<td data-value="38.46" class="pct low">38.46%</td>
<td data-value="13" class="abs low">5/13</td>
<td data-value="36.23" class="pct low">36.23%</td>
<td data-value="69" class="abs low">25/69</td>
<td data-value="68.11" class="pct medium">68.11%</td>
<td data-value="69" class="abs medium">47/69</td>
<td data-value="60" class="pct medium">60%</td>
<td data-value="20" class="abs medium">12/20</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="13" class="abs high">13/13</td>
<td data-value="68.11" class="pct medium">68.11%</td>
<td data-value="69" class="abs medium">47/69</td>
</tr>

<tr>
Expand All @@ -176,7 +176,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-22T07:45:48.689Z
at 2024-08-22T08:08:23.674Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
20 changes: 10 additions & 10 deletions coverage/lcov-report/src/app.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> app.js<
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">92.85% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>13/14</span>
<span class='fraction'>14/14</span>
</div>


Expand All @@ -37,16 +37,16 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> app.js<


<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/1</span>
<span class='fraction'>1/1</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">92.85% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>13/14</span>
<span class='fraction'>14/14</span>
</div>


Expand Down Expand Up @@ -111,7 +111,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> app.js<
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -141,8 +141,8 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> app.js<
app.use(bodyParser.urlencoded({ extended: true }));
&nbsp;
// Route simple
app.get("/", <span class="fstat-no" title="function not covered" >(r</span>eq, res) =&gt; {
<span class="cstat-no" title="statement not covered" > res.json({ message: "Bienvenue dans notre application API." });</span>
app.get("/", (req, res) =&gt; {
res.json({ message: "Bienvenue dans notre application API." });
});
&nbsp;
// Import des routes pour les clients
Expand All @@ -163,7 +163,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> app.js<
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-22T07:45:48.689Z
at 2024-08-22T08:08:23.674Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
12 changes: 6 additions & 6 deletions coverage/lcov-report/src/config/db.config.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/config</


<div class='fl pad1y space-right2'>
<span class="strong">85.71% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>6/7</span>
<span class='fraction'>7/7</span>
</div>


Expand Down Expand Up @@ -95,7 +95,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/config</
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
Expand All @@ -112,8 +112,8 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/config</
});
&nbsp;
dbConn.connect(function(error) {
<span class="missing-if-branch" title="else path not taken" >E</span>if (error) throw error;
<span class="cstat-no" title="statement not covered" > console.log("Connecté à la base de données MySQL!");</span>
<span class="missing-if-branch" title="if path not taken" >I</span>if (error) <span class="cstat-no" title="statement not covered" >throw error;</span>
console.log("Connecté à la base de données MySQL!");
});
&nbsp;
module.exports = dbConn;
Expand All @@ -124,7 +124,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/config</
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-22T07:45:48.689Z
at 2024-08-22T08:08:23.674Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
10 changes: 5 additions & 5 deletions coverage/lcov-report/src/config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ <h1><a href="../../index.html">All files</a> src/config</h1>


<div class='fl pad1y space-right2'>
<span class="strong">85.71% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>6/7</span>
<span class='fraction'>7/7</span>
</div>


Expand Down Expand Up @@ -89,8 +89,8 @@ <h1><a href="../../index.html">All files</a> src/config</h1>
<td data-value="2" class="abs medium">1/2</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="7" class="abs high">6/7</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="7" class="abs high">7/7</td>
</tr>

</tbody>
Expand All @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> src/config</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-22T07:45:48.689Z
at 2024-08-22T08:08:23.674Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 444186a

Please sign in to comment.