FIx: Fixed Coverage Screenshots And htmlRepot.
This commit is contained in:
@@ -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"> package it.polimi.ingsw.gc14.Model.Orders;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Represents a player entry in an order logic card.
|
||||
*
|
||||
* <p>Each entry stores the player and whether that player has already
|
||||
* performed an action in the current order sequence.
|
||||
*/
|
||||
public class OrderPlayer implements Serializable {
|
||||
|
||||
/**
|
||||
* The player associated with this order entry.
|
||||
*/
|
||||
private final Player player;
|
||||
|
||||
/**
|
||||
* Indicates whether the player has already played.
|
||||
*/
|
||||
private boolean played;
|
||||
|
||||
/**
|
||||
* Returns the player associated with this order entry.
|
||||
*
|
||||
* @return the player.
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
<b class="fc"> return player;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the player has already played in this order sequence.
|
||||
*
|
||||
* @return {@code true} if the player has played; {@code false} otherwise.
|
||||
*/
|
||||
public boolean isPlayed() {
|
||||
<b class="fc"> return played;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks this player as having played in the current order sequence.
|
||||
*/
|
||||
public void markAsPlayed() {
|
||||
<b class="fc"> this.played = true;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an order entry for the specified player.
|
||||
*
|
||||
* @param player the player associated with this order entry.
|
||||
* @param played {@code true} if the player has already played;
|
||||
* {@code false} otherwise.
|
||||
*/
|
||||
<b class="fc"> public OrderPlayer(Player player, boolean played) {</b>
|
||||
<b class="fc"> this.player = player;</b>
|
||||
<b class="fc"> this.played = played;</b>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string containing the player's username and whether the player
|
||||
* has already played.
|
||||
*
|
||||
* @return the string containing the username and whether the player has played.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
<b class="fc"> return player.getUserName() + " " + played;</b>
|
||||
}
|
||||
}
|
||||
</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-19 22:53</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user