EMMA Coverage Report (generated Fri Mar 15 09:08:15 CET 2013)
[all classes][jpacman]

COVERAGE SUMMARY FOR SOURCE FILE [TestUtils.java]

nameclass, %method, %block, %line, %
TestUtils.java100% (1/1)50%  (2/4)62%  (16/26)64%  (3.2/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TestUtils100% (1/1)50%  (2/4)62%  (16/26)64%  (3.2/5)
TestUtils (): void 0%   (0/1)0%   (0/3)0%   (0/1)
testDummy (): void 0%   (0/1)0%   (0/1)0%   (0/1)
assertionsEnabled (): boolean 100% (1/1)71%  (10/14)89%  (2.7/3)
<static initializer> 100% (1/1)75%  (6/8)75%  (0.8/1)

1package jpacman;
2 
3import org.junit.Test;
4 
5/**
6 * Utility methods that help in testing.
7 *
8 * @author Arie van Deursen, TU Delft, 2006
9 * @version $Id: TestUtils.java,v 1.6 2008/02/10 19:51:11 arie Exp $
10 */
11 
12public final class TestUtils {
13 
14    /**
15     * Work around surefire 2.3 issue.
16     */
17    @Test public void testDummy() { }
18 
19    /**
20     * A helper method that just tells us whether assertions are enabled
21     * or not.
22     * @return True iff assertions are enabled.
23     */
24    public static boolean assertionsEnabled() {
25        boolean hasAssertEnabled = false;
26        //notice the intentional side effect!
27        assert hasAssertEnabled = true;
28        return hasAssertEnabled;
29    }
30}

[all classes][jpacman]
EMMA 2.0.5312 (C) Vladimir Roubtsov