Home
last modified time | relevance | path

Searched refs:ICounter (Results 1 – 25 of 39) sorted by relevance

12

/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/
DControlStructuresTest.java14 import org.jacoco.core.analysis.ICounter;
37 assertLine("unconditional", ICounter.FULLY_COVERED); in testCoverageResult()
40 assertLine("iffalse", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
41 assertLine("missedif", ICounter.NOT_COVERED); in testCoverageResult()
42 assertLine("executedelse", ICounter.FULLY_COVERED); in testCoverageResult()
45 assertLine("iftrue", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
46 assertLine("executedif", ICounter.FULLY_COVERED); in testCoverageResult()
47 assertLine("missedelse", ICounter.NOT_COVERED); in testCoverageResult()
52 assertLine("missedwhile", ICounter.NOT_COVERED); in testCoverageResult()
55 assertLine("whiletrue", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
[all …]
DExceptionsTest.java14 import org.jacoco.core.analysis.ICounter;
39 assertLine("implicitException.before", ICounter.FULLY_COVERED); in testCoverageResult()
40 assertLine("implicitException.exception", ICounter.NOT_COVERED); in testCoverageResult()
41 assertLine("implicitException.after", ICounter.NOT_COVERED); in testCoverageResult()
45 assertLine("explicitException.before", ICounter.FULLY_COVERED); in testCoverageResult()
46 assertLine("explicitException.throw", ICounter.FULLY_COVERED); in testCoverageResult()
49 assertLine("noExceptionTryCatch.beforeBlock", ICounter.FULLY_COVERED); in testCoverageResult()
50 assertLine("noExceptionTryCatch.tryBlock", ICounter.FULLY_COVERED); in testCoverageResult()
51 assertLine("noExceptionTryCatch.catchBlock", ICounter.NOT_COVERED); in testCoverageResult()
57 ICounter.FULLY_COVERED); in testCoverageResult()
[all …]
DBooleanExpressionsTest.java14 import org.jacoco.core.analysis.ICounter;
37 assertLine("booleancmp1", ICounter.PARTLY_COVERED, 1, 1); in testCoverageResult()
40 assertLine("booleancmp2", ICounter.FULLY_COVERED, 0, 2); in testCoverageResult()
43 assertLine("andFF", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
44 assertLine("andFT", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
45 assertLine("andTF", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
46 assertLine("andTT", ICounter.FULLY_COVERED, 1, 1); in testCoverageResult()
49 assertLine("conditionalandFF", ICounter.PARTLY_COVERED, 3, 1); in testCoverageResult()
50 assertLine("conditionalandFT", ICounter.PARTLY_COVERED, 3, 1); in testCoverageResult()
51 assertLine("conditionalandTF", ICounter.FULLY_COVERED, 2, 2); in testCoverageResult()
[all …]
DClassInitializerTest.java14 import org.jacoco.core.analysis.ICounter;
36 assertLine("const1", ICounter.EMPTY); in testCoverageResult()
37 assertLine("const2", ICounter.EMPTY); in testCoverageResult()
39 assertLine("const3", ICounter.FULLY_COVERED); in testCoverageResult()
40 assertLine("const4", ICounter.FULLY_COVERED); in testCoverageResult()
42 assertLine("field1", ICounter.FULLY_COVERED); in testCoverageResult()
43 assertLine("field2", ICounter.FULLY_COVERED); in testCoverageResult()
44 assertLine("field3", ICounter.FULLY_COVERED); in testCoverageResult()
45 assertLine("field4", ICounter.FULLY_COVERED); in testCoverageResult()
47 assertLine("staticblock", ICounter.FULLY_COVERED); in testCoverageResult()
DCyclomaticComplexityTest.java22 import org.jacoco.core.analysis.ICounter;
74 final ICounter complexity = analyze(); in testSimple1()
82 final ICounter complexity = analyze(); in testSimple2()
97 final ICounter complexity = analyze(); in testIf1()
105 final ICounter complexity = analyze(); in testIf2()
114 final ICounter complexity = analyze(); in testIf3()
132 final ICounter complexity = analyze(); in testTwoIf1()
140 final ICounter complexity = analyze(); in testTwoIf2()
149 final ICounter complexity = analyze(); in testTwoIf3()
158 final ICounter complexity = analyze(); in testTwoIf4()
[all …]
DImplicitFieldInitializationTest.java14 import org.jacoco.core.analysis.ICounter;
35 assertLine("classdef", ICounter.FULLY_COVERED); in testCoverageResult()
36 assertLine("field1", ICounter.EMPTY); in testCoverageResult()
37 assertLine("field2", ICounter.FULLY_COVERED); in testCoverageResult()
38 assertLine("field3", ICounter.EMPTY); in testCoverageResult()
39 assertLine("field4", ICounter.FULLY_COVERED); in testCoverageResult()
DFieldInitializationInTwoConstructorsTest.java14 import org.jacoco.core.analysis.ICounter;
36 assertLine("field1", ICounter.PARTLY_COVERED); in testCoverageResult()
37 assertLine("field2", ICounter.PARTLY_COVERED); in testCoverageResult()
38 assertLine("constr1", ICounter.FULLY_COVERED); in testCoverageResult()
39 assertLine("constr2", ICounter.NOT_COVERED); in testCoverageResult()
DInterfaceClassInitializerTest.java14 import org.jacoco.core.analysis.ICounter;
36 assertLine("const1", ICounter.EMPTY); in testCoverageResult()
37 assertLine("const2", ICounter.EMPTY); in testCoverageResult()
39 assertLine("const3", ICounter.FULLY_COVERED); in testCoverageResult()
40 assertLine("const4", ICounter.FULLY_COVERED); in testCoverageResult()
DPrivateEmptyDefaultConstructorTest.java14 import org.jacoco.core.analysis.ICounter;
36 assertLine("classdef", ICounter.EMPTY); in testCoverageResult()
37 assertLine("constructor", ICounter.NOT_COVERED); in testCoverageResult()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DCounterImplTest.java19 import org.jacoco.core.analysis.ICounter;
20 import org.jacoco.core.analysis.ICounter.CounterValue;
30 ICounter c = CounterImpl.getInstance(0, 0); in testGetInstance1()
41 ICounter c = CounterImpl.getInstance(33, 15); in testGetInstance2()
52 ICounter c = CounterImpl.getInstance(15, 12); in testGetInstance3()
53 ICounter copy = CounterImpl.getInstance(c); in testGetInstance3()
64 ICounter c1 = CounterImpl.getInstance(30, 30); in testFixInstance()
65 ICounter c2 = CounterImpl.getInstance(30, 30); in testFixInstance()
71 ICounter c1 = CounterImpl.getInstance(31, 30); in testVarInstance()
72 ICounter c2 = CounterImpl.getInstance(31, 30); in testVarInstance()
[all …]
DLineImplTest.java17 import org.jacoco.core.analysis.ICounter;
37 assertEquals(ICounter.EMPTY, line.getStatus()); in testEMPTY()
92 assertEquals(ICounter.NOT_COVERED, line.getStatus()); in testGetStatus1()
99 assertEquals(ICounter.NOT_COVERED, line.getStatus()); in testGetStatus2()
106 assertEquals(ICounter.FULLY_COVERED, line.getStatus()); in testGetStatus3()
113 assertEquals(ICounter.FULLY_COVERED, line.getStatus()); in testGetStatus4()
120 assertEquals(ICounter.PARTLY_COVERED, line.getStatus()); in testGetStatus5()
127 assertEquals(ICounter.PARTLY_COVERED, line.getStatus()); in testGetStatus6()
/external/jacoco/org.jacoco.core/src/org/jacoco/core/analysis/
DICoverageNode.java88 public abstract ICounter getInstructionCounter(); in getInstructionCounter()
95 public ICounter getBranchCounter(); in getBranchCounter()
102 public ICounter getLineCounter(); in getLineCounter()
109 public ICounter getComplexityCounter(); in getComplexityCounter()
116 public ICounter getMethodCounter(); in getMethodCounter()
123 public ICounter getClassCounter(); in getClassCounter()
132 public ICounter getCounter(CounterEntity entity); in getCounter()
DCoverageNodeImpl.java104 public ICounter getInstructionCounter() { in getInstructionCounter()
108 public ICounter getBranchCounter() { in getBranchCounter()
112 public ICounter getLineCounter() { in getLineCounter()
116 public ICounter getComplexityCounter() { in getComplexityCounter()
120 public ICounter getMethodCounter() { in getMethodCounter()
124 public ICounter getClassCounter() { in getClassCounter()
128 public ICounter getCounter(final CounterEntity entity) { in getCounter()
DCounterComparator.java17 import org.jacoco.core.analysis.ICounter.CounterValue;
24 public class CounterComparator implements Comparator<ICounter>, Serializable {
70 public int compare(final ICounter c1, final ICounter c2) { in compare()
DNodeComparator.java33 private final Comparator<ICounter> counterComparator;
37 NodeComparator(final Comparator<ICounter> counterComparator, in NodeComparator()
82 final ICounter c1 = n1.getCounter(entity); in compare()
83 final ICounter c2 = n2.getCounter(entity); in compare()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/analysis/
DCounterComparatorTest.java31 final Comparator<ICounter> cmp = CounterComparator.TOTALITEMS; in testTotalItemsComparator()
39 final Comparator<ICounter> cmp = CounterComparator.COVEREDITEMS; in testCoveredItemsComparator()
47 final Comparator<ICounter> cmp = CounterComparator.MISSEDITEMS; in testMissedItemsComparator()
55 final Comparator<ICounter> cmp = CounterComparator.COVEREDRATIO; in testCoveredRatioComparator()
63 final Comparator<ICounter> cmp = CounterComparator.MISSEDRATIO; in testMissedRatioComparator()
71 final Comparator<ICounter> cmp = CounterComparator.TOTALITEMS.reverse(); in testReverseComparator()
79 final Comparator<ICounter> cmp = CounterComparator.TOTALITEMS.reverse() in testReverseReverseComparator()
104 private void assertCmpEquals(Comparator<ICounter> cmp, int missed1, in assertCmpEquals()
111 private void assertCmpLess(Comparator<ICounter> cmp, int missed1, in assertCmpLess()
116 private void assertCmpGreater(Comparator<ICounter> cmp, int missed1,
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
DLineImpl.java14 import org.jacoco.core.analysis.ICounter;
72 public LineImpl increment(final ICounter instructions, in increment()
73 final ICounter branches) { in increment()
90 public LineImpl increment(final ICounter instructions, in increment()
91 final ICounter branches) { in increment()
117 public abstract LineImpl increment(final ICounter instructions, in increment()
118 final ICounter branches); in increment()
126 public ICounter getInstructionCounter() { in getInstructionCounter()
130 public ICounter getBranchCounter() { in getBranchCounter()
DCounterImpl.java14 import org.jacoco.core.analysis.ICounter;
20 public abstract class CounterImpl implements ICounter {
99 public static CounterImpl getInstance(final ICounter counter) { in getInstance()
131 public CounterImpl increment(final ICounter counter) { in increment()
197 if (obj instanceof ICounter) { in equals()
198 final ICounter that = (ICounter) obj; in equals()
DMethodCoverageImpl.java14 import org.jacoco.core.analysis.ICounter;
45 public void increment(final ICounter instructions, final ICounter branches, in increment()
61 final ICounter base = this.instructionCounter.getCoveredCount() == 0 ? CounterImpl.COUNTER_1_0 in incrementMethodCounter()
DSourceNodeImpl.java15 import org.jacoco.core.analysis.ICounter;
114 public void increment(final ICounter instructions, final ICounter branches, in increment()
123 private void incrementLine(final ICounter instructions, in incrementLine()
124 final ICounter branches, final int line) { in incrementLine()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/page/
DSourceHighlighter.java19 import org.jacoco.core.analysis.ICounter;
91 case ICounter.NOT_COVERED: in highlight()
94 case ICounter.FULLY_COVERED: in highlight()
97 case ICounter.PARTLY_COVERED: in highlight()
105 final ICounter branches = line.getBranchCounter(); in highlight()
107 case ICounter.NOT_COVERED: in highlight()
110 case ICounter.FULLY_COVERED: in highlight()
113 case ICounter.PARTLY_COVERED: in highlight()
123 final ICounter branches) throws IOException { in span()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/java8/
DInterfaceDefaultMethodsTest.java14 import org.jacoco.core.analysis.ICounter;
34 assertLine("clinit", ICounter.FULLY_COVERED); in testCoverageResult()
35 assertLine("m1", ICounter.FULLY_COVERED); in testCoverageResult()
36 assertLine("m2", ICounter.NOT_COVERED); in testCoverageResult()
DLambdaExpressionsTest.java14 import org.jacoco.core.analysis.ICounter;
37 assertLine("executedlambdabody", ICounter.FULLY_COVERED); in testCoverageResult()
38 assertLine("notexecutedlambdabody", ICounter.NOT_COVERED); in testCoverageResult()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/
DCounterColumn.java22 import org.jacoco.core.analysis.ICounter;
50 protected int getValue(final ICounter counter) { in newTotal()
70 protected int getValue(final ICounter counter) {
90 protected int getValue(final ICounter counter) {
159 protected abstract int getValue(ICounter counter);
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/
DCoreTutorial.java22 import org.jacoco.core.analysis.ICounter;
169 private void printCounter(final String unit, final ICounter counter) { in printCounter()
177 case ICounter.NOT_COVERED: in getColor()
179 case ICounter.PARTLY_COVERED: in getColor()
181 case ICounter.FULLY_COVERED: in getColor()

12