Commit 3f8dcabb authored by Qi LI's avatar Qi LI
Browse files

add test coverage report

parent f5706d1f
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>TestPlayer.java</title><link rel="stylesheet" href="../../../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../../../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <a href="index.source.html" class="el_package">test</a> &gt; <span class="el_source">TestPlayer.java</span></div><h1>TestPlayer.java</h1><pre class="source lang-java linenums">package test;
import game.Player;
import org.junit.Assert;
import org.junit.Test;
public class TestPlayer {
private Player player;
private String name;
<span class="fc" id="L13"> public TestPlayer() {</span>
<span class="fc" id="L14"> this.name = &quot;Alice&quot;;</span>
<span class="fc" id="L15"> this.player = new Player(name);</span>
<span class="fc" id="L16"> }</span>
@Test
public void testPlayerConstructor() {
<span class="fc" id="L20"> Assert.assertNotNull(player);</span>
<span class="fc" id="L21"> Assert.assertEquals(name, player.getName());</span>
<span class="fc" id="L22"> Assert.assertEquals(name, player.toString());</span>
<span class="fc" id="L23"> }</span>
@Test
public void testQuitGame() {
<span class="fc" id="L27"> player.quitNow();</span>
<span class="fc" id="L28"> Assert.assertTrue(player.isOff());</span>
<span class="fc" id="L29"> player.onGame();</span>
<span class="fc" id="L30"> Assert.assertFalse(player.isOff());</span>
<span class="fc" id="L31"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>TestScoreTable</title><script type="text/javascript" src="../../../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <a href="index.html" class="el_package">test</a> &gt; <span class="el_class">TestScoreTable</span></div><h1>TestScoreTable</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 820</td><td class="ctr2">100%</td><td class="bar">0 of 22</td><td class="ctr2">100%</td><td class="ctr1">0</td><td class="ctr2">23</td><td class="ctr1">0</td><td class="ctr2">98</td><td class="ctr1">0</td><td class="ctr2">12</td></tr></tfoot><tbody><tr><td id="a8"><a href="TestScoreTable.java.html#L104" class="el_method">testCase7()</a></td><td class="bar" id="b0"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="96" alt="96"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">11</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a9"><a href="TestScoreTable.java.html#L121" class="el_method">testCase8()</a></td><td class="bar" id="b1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="96" alt="96"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">11</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a10"><a href="TestScoreTable.java.html#L138" class="el_method">testCase9()</a></td><td class="bar" id="b2"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="96" alt="96"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">11</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="TestScoreTable.java.html#L13" class="el_method">testCase0()</a></td><td class="bar" id="b3"><img src="../../../.resources/greenbar.gif" width="115" height="10" title="92" alt="92"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e3">100%</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i4">9</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a7"><a href="TestScoreTable.java.html#L87" class="el_method">testCase6()</a></td><td class="bar" id="b4"><img src="../../../.resources/greenbar.gif" width="115" height="10" title="92" alt="92"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e4">100%</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">2</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">11</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a2"><a href="TestScoreTable.java.html#L155" class="el_method">testCase10()</a></td><td class="bar" id="b5"><img src="../../../.resources/greenbar.gif" width="110" height="10" title="88" alt="88"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d5"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e5">100%</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">2</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">9</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a4"><a href="TestScoreTable.java.html#L51" class="el_method">testCase3()</a></td><td class="bar" id="b6"><img src="../../../.resources/greenbar.gif" width="66" height="10" title="53" alt="53"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d6"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e6">100%</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">2</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">7</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a5"><a href="TestScoreTable.java.html#L63" class="el_method">testCase4()</a></td><td class="bar" id="b7"><img src="../../../.resources/greenbar.gif" width="66" height="10" title="53" alt="53"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d7"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e7">100%</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g7">2</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i7">7</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a6"><a href="TestScoreTable.java.html#L75" class="el_method">testCase5()</a></td><td class="bar" id="b8"><img src="../../../.resources/greenbar.gif" width="66" height="10" title="53" alt="53"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d8"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e8">100%</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g8">2</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">7</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a1"><a href="TestScoreTable.java.html#L27" class="el_method">testCase1()</a></td><td class="bar" id="b9"><img src="../../../.resources/greenbar.gif" width="61" height="10" title="49" alt="49"/></td><td class="ctr2" id="c9">100%</td><td class="bar" id="d9"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e9">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">2</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i9">7</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a3"><a href="TestScoreTable.java.html#L39" class="el_method">testCase2()</a></td><td class="bar" id="b10"><img src="../../../.resources/greenbar.gif" width="61" height="10" title="49" alt="49"/></td><td class="ctr2" id="c10">100%</td><td class="bar" id="d10"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e10">100%</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g10">2</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i10">7</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a11"><a href="TestScoreTable.java.html#L9" class="el_method">TestScoreTable()</a></td><td class="bar" id="b11"><img src="../../../.resources/greenbar.gif" width="3" height="10" title="3" alt="3"/></td><td class="ctr2" id="c11">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>TestScoreTable.java</title><link rel="stylesheet" href="../../../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../../../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <a href="index.source.html" class="el_package">test</a> &gt; <span class="el_source">TestScoreTable.java</span></div><h1>TestScoreTable.java</h1><pre class="source lang-java linenums">package test;
import org.junit.Assert;
import org.junit.Test;
import game.ScoreTable;
public class TestScoreTable {
<span class="fc" id="L9"> public TestScoreTable() {}</span>
@Test
public void testCase0() throws Exception {
<span class="fc" id="L13"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L14"> int[] points = {7,2,10,10,7,3,8};</span>
<span class="fc" id="L15"> int[] expected = {7, 9, 19, 39, 60, 66, 82};</span>
<span class="fc" id="L17"> int[] scores = new int[points.length];</span>
<span class="fc bfc" id="L18" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L19"> table.enterPoint(points[i]);</span>
<span class="fc" id="L20"> scores[i] = table.getCurrentScore();</span>
}
<span class="fc" id="L22"> Assert.assertArrayEquals(expected, scores);</span>
<span class="fc" id="L23"> }</span>
@Test
public void testCase1() throws Exception {
<span class="fc" id="L27"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L28"> int[] points = {10, 3, 6};</span>
<span class="fc" id="L29"> int[] expected = {28};</span>
<span class="fc bfc" id="L31" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i)</span>
<span class="fc" id="L32"> table.enterPoint(points[i]);</span>
<span class="fc" id="L34"> Assert.assertArrayEquals(expected, new int[] {table.getCurrentScore()});</span>
<span class="fc" id="L35"> }</span>
@Test
public void testCase2() throws Exception {
<span class="fc" id="L39"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L40"> int[] points = {10, 10, 9, 0};</span>
<span class="fc" id="L41"> int[] expected = {57};</span>
<span class="fc bfc" id="L43" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i)</span>
<span class="fc" id="L44"> table.enterPoint(points[i]);</span>
<span class="fc" id="L46"> Assert.assertArrayEquals(expected, new int[] {table.getCurrentScore()});</span>
<span class="fc" id="L47"> }</span>
@Test
public void testCase3() throws Exception {
<span class="fc" id="L51"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L52"> int[] points = {10, 10, 10, 0, 9};</span>
<span class="fc" id="L53"> int[] expected = {78};</span>
<span class="fc bfc" id="L55" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i)</span>
<span class="fc" id="L56"> table.enterPoint(points[i]);</span>
<span class="fc" id="L58"> Assert.assertArrayEquals(expected, new int[] {table.getCurrentScore()});</span>
<span class="fc" id="L59"> }</span>
@Test
public void testCase4() throws Exception {
<span class="fc" id="L63"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L64"> int[] points = {10, 10, 4, 2};</span>
<span class="fc" id="L65"> int[] expected = {46};</span>
<span class="fc bfc" id="L67" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i)</span>
<span class="fc" id="L68"> table.enterPoint(points[i]);</span>
<span class="fc" id="L70"> Assert.assertArrayEquals(expected, new int[] {table.getCurrentScore()});</span>
<span class="fc" id="L71"> }</span>
@Test
public void testCase5() throws Exception {
<span class="fc" id="L75"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L76"> int[] points = {7, 3, 4, 2};</span>
<span class="fc" id="L77"> int[] expected = {20};</span>
<span class="fc bfc" id="L79" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i)</span>
<span class="fc" id="L80"> table.enterPoint(points[i]);</span>
<span class="fc" id="L82"> Assert.assertArrayEquals(expected, new int[] {table.getCurrentScore()});</span>
<span class="fc" id="L83"> }</span>
@Test
public void testCase6() throws Exception {
<span class="fc" id="L87"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L88"> int[] points = {10,10,10,10,10,10,10,10,10,8,1};</span>
<span class="fc" id="L89"> boolean[] expected = new boolean[points.length];</span>
<span class="fc" id="L90"> boolean[] actual = new boolean[points.length];</span>
<span class="fc bfc" id="L92" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L93"> table.enterPoint(points[i]);</span>
<span class="fc" id="L94"> expected[i] = false;</span>
<span class="fc" id="L95"> actual[i] = table.isComplete();</span>
}
<span class="fc" id="L97"> expected[expected.length - 1] = true;</span>
<span class="fc" id="L99"> Assert.assertArrayEquals(expected, actual);</span>
<span class="fc" id="L100"> }</span>
@Test
public void testCase7() throws Exception {
<span class="fc" id="L104"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L105"> int[] points = {10,10,10,10,10,10,10,10,10,8,2,10};</span>
<span class="fc" id="L106"> boolean[] expected = new boolean[points.length];</span>
<span class="fc" id="L107"> boolean[] actual = new boolean[points.length];</span>
<span class="fc bfc" id="L109" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L110"> table.enterPoint(points[i]);</span>
<span class="fc" id="L111"> expected[i] = false;</span>
<span class="fc" id="L112"> actual[i] = table.isComplete();</span>
}
<span class="fc" id="L114"> expected[expected.length - 1] = true;</span>
<span class="fc" id="L116"> Assert.assertArrayEquals(expected, actual);</span>
<span class="fc" id="L117"> }</span>
@Test
public void testCase8() throws Exception {
<span class="fc" id="L121"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L122"> int[] points = {10,10,10,10,10,10,10,10,10,10,7,2};</span>
<span class="fc" id="L123"> boolean[] expected = new boolean[points.length];</span>
<span class="fc" id="L124"> boolean[] actual = new boolean[points.length];</span>
<span class="fc bfc" id="L126" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L127"> table.enterPoint(points[i]);</span>
<span class="fc" id="L128"> expected[i] = false;</span>
<span class="fc" id="L129"> actual[i] = table.isComplete();</span>
}
<span class="fc" id="L131"> expected[expected.length - 1] = true;</span>
<span class="fc" id="L133"> Assert.assertArrayEquals(expected, actual);</span>
<span class="fc" id="L134"> }</span>
@Test
public void testCase9() throws Exception {
<span class="fc" id="L138"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L139"> int[] points = {10,10,10,10,10,10,10,10,10,8,2,9};</span>
<span class="fc" id="L140"> boolean[] expected = new boolean[points.length];</span>
<span class="fc" id="L141"> boolean[] actual = new boolean[points.length];</span>
<span class="fc bfc" id="L143" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L144"> table.enterPoint(points[i]);</span>
<span class="fc" id="L145"> expected[i] = false;</span>
<span class="fc" id="L146"> actual[i] = table.isComplete();</span>
}
<span class="fc" id="L148"> expected[expected.length - 1] = true;</span>
<span class="fc" id="L150"> Assert.assertArrayEquals(expected, actual);</span>
<span class="fc" id="L151"> }</span>
@Test
public void testCase10() throws Exception {
<span class="fc" id="L155"> ScoreTable table = new ScoreTable();</span>
<span class="fc" id="L156"> int[] points = {7, 3, 2, 6, 1, 9, 10};</span>
<span class="fc bfc" id="L158" title="All 2 branches covered."> for (int p : points) table.enterPoint(p);</span>
<span class="fc" id="L160"> String tableString = &quot;&quot;;</span>
<span class="fc" id="L161"> tableString += &quot;| 7 3| 2 6| 1 9| 10 0&quot;;</span>
<span class="fc" id="L162"> tableString += &quot;\n&quot;;</span>
<span class="fc" id="L163"> tableString += &quot;| 12 | 20 | 40 | 50 &quot;;</span>
//System.out.println(tableString);
<span class="fc" id="L166"> Assert.assertEquals(tableString, table.readTable());</span>
<span class="fc" id="L167"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>TestSet</title><script type="text/javascript" src="../../../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <a href="index.html" class="el_package">test</a> &gt; <span class="el_class">TestSet</span></div><h1>TestSet</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">1 of 441</td><td class="ctr2">100%</td><td class="bar">1 of 10</td><td class="ctr2">90%</td><td class="ctr1">1</td><td class="ctr2">10</td><td class="ctr1">0</td><td class="ctr2">58</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a2"><a href="TestSet.java.html#L66" class="el_method">testCase2()</a></td><td class="bar" id="b0"><img src="../../../.resources/greenbar.gif" width="27" height="10" title="41" alt="41"/></td><td class="ctr2" id="c4">98%</td><td class="bar" id="d0"><img src="../../../.resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../../../.resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="e2">50%</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i3">7</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="TestSet.java.html#L35" class="el_method">testCase1()</a></td><td class="bar" id="b1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="176" alt="176"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i0">21</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="TestSet.java.html#L17" class="el_method">testCase0()</a></td><td class="bar" id="b2"><img src="../../../.resources/greenbar.gif" width="75" height="10" title="110" alt="110"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"><img src="../../../.resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">2</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">11</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a3"><a href="TestSet.java.html#L78" class="el_method">testCase3()</a></td><td class="bar" id="b3"><img src="../../../.resources/greenbar.gif" width="75" height="10" title="110" alt="110"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i1">18</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a4"><a href="TestSet.java.html#L13" class="el_method">TestSet()</a></td><td class="bar" id="b4"><img src="../../../.resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>TestSet.java</title><link rel="stylesheet" href="../../../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../../../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <a href="index.source.html" class="el_package">test</a> &gt; <span class="el_source">TestSet.java</span></div><h1>TestSet.java</h1><pre class="source lang-java linenums">package test;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;
import org.junit.internal.Throwables;
import game.Player;
import game.Set;
public class TestSet {
<span class="fc" id="L13"> public TestSet() {}</span>
@Test
public void testCase0() throws Exception {
<span class="fc" id="L17"> Player alice = new Player(&quot;Alice&quot;);</span>
<span class="fc" id="L18"> Player bob = new Player(&quot;Bob&quot;);</span>
<span class="fc" id="L19"> Set set = new Set(Arrays.asList(new Player[] {alice, bob}));</span>
<span class="fc" id="L21"> int[] points = {10, 7, 2, 8, 0, 10, 7};</span>
<span class="fc" id="L22"> Player[] expected = {alice, bob, bob, alice, alice, bob, alice};</span>
<span class="fc" id="L24"> Player[] actuals = new Player[expected.length];</span>
<span class="fc bfc" id="L25" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L26"> actuals[i] = set.getNextPlayer();</span>
<span class="fc" id="L27"> set.enterPoint(points[i]);</span>
}
<span class="fc" id="L30"> Assert.assertArrayEquals(expected, actuals);</span>
<span class="fc" id="L31"> }</span>
@Test
public void testCase1() throws Exception {
<span class="fc" id="L35"> Player alice = new Player(&quot;Alice&quot;);</span>
<span class="fc" id="L36"> Player bob = new Player(&quot;Bob&quot;);</span>
<span class="fc" id="L37"> Player charlie = new Player(&quot;Charlie&quot;);</span>
<span class="fc" id="L38"> Set set = new Set(Arrays.asList(new Player[] {alice, bob, charlie}));</span>
<span class="fc bfc" id="L40" title="All 2 branches covered."> for (int i = 0; i &lt; 9; ++i) {</span>
<span class="fc bfc" id="L41" title="All 2 branches covered."> for (int j = 0; j &lt; 3; ++j)</span>
<span class="fc" id="L42"> set.enterPoint(10);</span>
}
<span class="fc" id="L45"> int[] points = {4, 5, 7, 3, 10, 9, 10, 8};</span>
<span class="fc" id="L46"> Player[] expectedPlayer = {alice, alice, bob, bob, charlie, bob, charlie, charlie};</span>
<span class="fc" id="L47"> Player[] actualPlayer = new Player[points.length];</span>
<span class="fc" id="L48"> boolean[] expectedOver = new boolean[points.length];</span>
<span class="fc" id="L49"> boolean[] actualOver = new boolean[points.length];</span>
<span class="fc bfc" id="L51" title="All 2 branches covered."> for (int i = 0; i &lt; points.length; ++i) {</span>
<span class="fc" id="L52"> actualPlayer[i] = set.getNextPlayer();</span>
<span class="fc" id="L53"> set.enterPoint(points[i]);</span>
<span class="fc" id="L55"> expectedOver[i] = false;</span>
<span class="fc" id="L56"> actualOver[i] = set.isOver();</span>
}
<span class="fc" id="L58"> expectedOver[points.length - 1] = true;</span>
<span class="fc" id="L60"> Assert.assertArrayEquals(expectedPlayer, actualPlayer);</span>
<span class="fc" id="L61"> Assert.assertArrayEquals(expectedOver, actualOver);</span>
<span class="fc" id="L62"> }</span>
@Test
public void testCase2() throws Exception {
<span class="fc" id="L66"> Player alice = new Player(&quot;Alice&quot;);</span>
<span class="fc" id="L67"> Player bob = new Player(&quot;Bob&quot;);</span>
<span class="fc" id="L68"> Set set = new Set(Arrays.asList(new Player[]{alice, bob}));</span>
<span class="fc" id="L70"> set.enterPoint(7);</span>
<span class="fc" id="L71"> set.enterPoint(3);</span>
<span class="pc bpc" id="L73" title="1 of 2 branches missed."> Assert.assertTrue(set.getWinner() == alice);</span>
<span class="fc" id="L74"> }</span>
@Test
public void testCase3() throws Exception {
<span class="fc" id="L78"> Player alice = new Player(&quot;Alice&quot;);</span>
<span class="fc" id="L79"> Player bob = new Player(&quot;Bob&quot;);</span>
<span class="fc" id="L80"> Set set = new Set(Arrays.asList(new Player[]{alice, bob}));</span>
<span class="fc" id="L82"> set.enterPoint(10);</span>
<span class="fc" id="L83"> set.enterPoint(7);</span>
<span class="fc" id="L84"> set.enterPoint(2);</span>
<span class="fc" id="L85"> set.enterPoint(3);</span>
<span class="fc" id="L87"> String scoreTable = &quot;&quot;;</span>
<span class="fc" id="L88"> scoreTable += &quot;| 10 0| 3 0&quot;;</span>
<span class="fc" id="L89"> scoreTable += &quot;\n&quot;;</span>
<span class="fc" id="L90"> scoreTable += &quot;| 13 | 16 &quot;;</span>
<span class="fc" id="L91"> Assert.assertEquals(scoreTable, set.getScoreTable(alice));</span>
<span class="fc" id="L93"> scoreTable = &quot;&quot;;</span>
<span class="fc" id="L94"> scoreTable += &quot;| 7 2&quot;;</span>
<span class="fc" id="L95"> scoreTable += &quot;\n&quot;;</span>
<span class="fc" id="L96"> scoreTable += &quot;| 9 &quot;;</span>
<span class="fc" id="L97"> Assert.assertEquals(scoreTable, set.getScoreTable(bob));</span>
<span class="fc" id="L98"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>test</title><script type="text/javascript" src="../../../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <span class="el_package">test</span></div><h1>test</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">26 of 1,492</td><td class="ctr2">98%</td><td class="bar">1 of 32</td><td class="ctr2">97%</td><td class="ctr1">3</td><td class="ctr2">45</td><td class="ctr1">9</td><td class="ctr2">208</td><td class="ctr1">2</td><td class="ctr2">29</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a0"><a href="TestFrame.html" class="el_class">TestFrame</a></td><td class="bar" id="b0"><img src="../../../.resources/redbar.gif" width="3" height="10" title="25" alt="25"/><img src="../../../.resources/greenbar.gif" width="21" height="10" title="145" alt="145"/></td><td class="ctr2" id="c4">85%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g2">7</td><td class="ctr1" id="h0">9</td><td class="ctr2" id="i2">36</td><td class="ctr1" id="j0">2</td><td class="ctr2" id="k1">7</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a4"><a href="TestSet.html" class="el_class">TestSet</a></td><td class="bar" id="b1"><img src="../../../.resources/greenbar.gif" width="64" height="10" title="440" alt="440"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d0"><img src="../../../.resources/redbar.gif" width="5" height="10" title="1" alt="1"/><img src="../../../.resources/greenbar.gif" width="49" height="10" title="9" alt="9"/></td><td class="ctr2" id="e1">90%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">10</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">58</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k2">5</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a3"><a href="TestScoreTable.html" class="el_class">TestScoreTable</a></td><td class="bar" id="b2"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="820" alt="820"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="22" alt="22"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g0">23</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i0">98</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k0">12</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a2"><a href="TestPlayer.html" class="el_class">TestPlayer</a></td><td class="bar" id="b3"><img src="../../../.resources/greenbar.gif" width="6" height="10" title="46" alt="46"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">3</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">13</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">3</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a1"><a href="TestGame.html" class="el_class">TestGame</a></td><td class="bar" id="b4"><img src="../../../.resources/greenbar.gif" width="2" height="10" title="15" alt="15"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">2</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">2</td><td class="ctr1" id="l4">0</td><td class="ctr2" id="m4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../../../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../../../.resources/report.gif" type="image/gif"/><title>test</title><script type="text/javascript" src="../../../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.html" class="el_class">Classes</a><a href="../../../.sessions.html" class="el_session">Sessions</a></span><a href="../../../index.html" class="el_report">test (Feb 24, 2016 5:32:41 PM)</a> &gt; <a href="../../index.html" class="el_group">Bowling</a> &gt; <a href="../index.html" class="el_bundle">src</a> &gt; <span class="el_package">test</span></div><h1>test</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">26 of 1,492</td><td class="ctr2">98%</td><td class="bar">1 of 32</td><td class="ctr2">97%</td><td class="ctr1">3</td><td class="ctr2">45</td><td class="ctr1">9</td><td class="ctr2">208</td><td class="ctr1">2</td><td class="ctr2">29</td><td class="ctr1">0</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a0"><a href="TestFrame.java.html" class="el_source">TestFrame.java</a></td><td class="bar" id="b0"><img src="../../../.resources/redbar.gif" width="3" height="10" title="25" alt="25"/><img src="../../../.resources/greenbar.gif" width="21" height="10" title="145" alt="145"/></td><td class="ctr2" id="c4">85%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f0">2</td><td class="ctr2" id="g2">7</td><td class="ctr1" id="h0">9</td><td class="ctr2" id="i2">36</td><td class="ctr1" id="j0">2</td><td class="ctr2" id="k1">7</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a4"><a href="TestSet.java.html" class="el_source">TestSet.java</a></td><td class="bar" id="b1"><img src="../../../.resources/greenbar.gif" width="64" height="10" title="440" alt="440"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d0"><img src="../../../.resources/redbar.gif" width="5" height="10" title="1" alt="1"/><img src="../../../.resources/greenbar.gif" width="49" height="10" title="9" alt="9"/></td><td class="ctr2" id="e1">90%</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g1">10</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">58</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k2">5</td><td class="ctr1" id="l1">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a3"><a href="TestScoreTable.java.html" class="el_source">TestScoreTable.java</a></td><td class="bar" id="b2"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="820" alt="820"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"><img src="../../../.resources/greenbar.gif" width="120" height="10" title="22" alt="22"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g0">23</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i0">98</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k0">12</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a2"><a href="TestPlayer.java.html" class="el_source">TestPlayer.java</a></td><td class="bar" id="b3"><img src="../../../.resources/greenbar.gif" width="6" height="10" title="46" alt="46"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">3</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">13</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">3</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a1"><a href="TestGame.java.html" class="el_source">TestGame.java</a></td><td class="bar" id="b4"><img src="../../../.resources/greenbar.gif" width="2" height="10" title="15" alt="15"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">2</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">3</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">2</td><td class="ctr1" id="l4">0</td><td class="ctr2" id="m4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href=".resources/report.css" type="text/css"/><link rel="shortcut icon" href=".resources/report.gif" type="image/gif"/><title>test (Feb 24, 2016 5:32:41 PM)</title><script type="text/javascript" src=".resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href=".sessions.html" class="el_session">Sessions</a></span><span class="el_report">test (Feb 24, 2016 5:32:41 PM)</span></div><h1>test (Feb 24, 2016 5:32:41 PM)</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">60 of 2,546</td><td class="ctr2">98%</td><td class="bar">6 of 168</td><td class="ctr2">96%</td><td class="ctr1">8</td><td class="ctr2">149</td><td class="ctr1">15</td><td class="ctr2">417</td><td class="ctr1">2</td><td class="ctr2">65</td><td class="ctr1">0</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a0"><a href="Bowling/index.html" class="el_group">Bowling</a></td><td class="bar" id="b0"><img src=".resources/redbar.gif" width="2" height="10" title="60" alt="60"/><img src=".resources/greenbar.gif" width="117" height="10" title="2,486" alt="2,486"/></td><td class="ctr2" id="c0">98%</td><td class="bar" id="d0"><img src=".resources/redbar.gif" width="4" height="10" title="6" alt="6"/><img src=".resources/greenbar.gif" width="115" height="10" title="162" alt="162"/></td><td class="ctr2" id="e0">96%</td><td class="ctr1" id="f0">8</td><td class="ctr2" id="g0">149</td><td class="ctr1" id="h0">15</td><td class="ctr2" id="i0">417</td><td class="ctr1" id="j0">2</td><td class="ctr2" id="k0">65</td><td class="ctr1" id="l0">0</td><td class="ctr2" id="m0">10</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.2.201409121644</span>test (Feb 24, 2016 5:32:41 PM)</div></body></html>
\ No newline at end of file
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