Add: Added Coverage Screenshots And htlmReport.

This commit is contained in:
GabrieleRadice
2026-06-19 21:50:38 +02:00
parent 6aca188aa3
commit d78b8bbd93
316 changed files with 86329 additions and 0 deletions
@@ -0,0 +1,176 @@
<!DOCTYPE html>
<html id="htmlId">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Coverage Report > OrderPlayer</title>
<style type="text/css">
@import "../../css/coverage.css";
@import "../../css/idea.min.css";
</style>
<script type="text/javascript" src="../../js/highlight.min.js"></script>
<script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>
<body>
<div class="content">
<div class="breadCrumbs">
Current scope: <a href="../../index.html">all classes</a>
<span class="separator">|</span>
<a href="../index.html">it.polimi.ingsw.gc14.Model.Orders</a>
</div>
<h1>Coverage Summary for Class: OrderPlayer (it.polimi.ingsw.gc14.Model.Orders)</h1>
<table class="coverageStats">
<tr>
<th class="name">Class</th>
<th class="coverageStat
">
Class, %
</th>
<th class="coverageStat
">
Method, %
</th>
<th class="coverageStat
">
Line, %
</th>
</tr>
<tr>
<td class="name">OrderPlayer</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(1/1)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(5/5)
</span>
</td>
<td class="coverageStat">
<span class="percent">
100%
</span>
<span class="absValue">
(7/7)
</span>
</td>
</tr>
</table>
<br/>
<br/>
<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package it.polimi.ingsw.gc14.Model.Orders;
&nbsp;
&nbsp;import it.polimi.ingsw.gc14.Model.Player;
&nbsp;
&nbsp;import java.io.Serializable;
&nbsp;
&nbsp;/**
&nbsp; * Represents a player entry in an order logic card.
&nbsp; *
&nbsp; * &lt;p&gt;Each entry stores the player and whether that player has already
&nbsp; * performed an action in the current order sequence.
&nbsp; */
&nbsp;public class OrderPlayer implements Serializable {
&nbsp;
&nbsp; /**
&nbsp; * The player associated with this order entry.
&nbsp; */
&nbsp; private final Player player;
&nbsp;
&nbsp; /**
&nbsp; * Indicates whether the player has already played.
&nbsp; */
&nbsp; private boolean played;
&nbsp;
&nbsp; /**
&nbsp; * Returns the player associated with this order entry.
&nbsp; *
&nbsp; * @return the player.
&nbsp; */
&nbsp; public Player getPlayer() {
<b class="fc">&nbsp; return player;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Returns whether the player has already played in this order sequence.
&nbsp; *
&nbsp; * @return {@code true} if the player has played; {@code false} otherwise.
&nbsp; */
&nbsp; public boolean isPlayed() {
<b class="fc">&nbsp; return played;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Marks this player as having played in the current order sequence.
&nbsp; */
&nbsp; public void markAsPlayed() {
<b class="fc">&nbsp; this.played = true;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Creates an order entry for the specified player.
&nbsp; *
&nbsp; * @param player the player associated with this order entry.
&nbsp; * @param played {@code true} if the player has already played;
&nbsp; * {@code false} otherwise.
&nbsp; */
<b class="fc">&nbsp; public OrderPlayer(Player player, boolean played) {</b>
<b class="fc">&nbsp; this.player = player;</b>
<b class="fc">&nbsp; this.played = played;</b>
&nbsp; }
&nbsp;
&nbsp; /**
&nbsp; * Returns a string containing the player&#39;s username and whether the player
&nbsp; * has already played.
&nbsp; *
&nbsp; * @return the string containing the username and whether the player has played.
&nbsp; */
&nbsp; @Override
&nbsp; public String toString() {
<b class="fc">&nbsp; return player.getUserName() + &quot; &quot; + played;</b>
&nbsp; }
&nbsp;}
</code>
</pre>
</div>
<script type="text/javascript">
(function() {
var msie = false, msie9 = false;
/*@cc_on
msie = true;
@if (@_jscript_version >= 9)
msie9 = true;
@end
@*/
if (!msie || msie && msie9) {
hljs.highlightAll()
hljs.initLineNumbersOnLoad();
}
})();
</script>
<div class="footer">
<div style="float:right;">generated on 2026-06-14 21:53</div>
</div>
</body>
</html>