use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testEquals1.
@Test
public void testEquals1() {
ICounter c1 = CounterImpl.getInstance(300, 123);
ICounter c2 = CounterImpl.getInstance(300, 123);
assertEquals(c1, c2);
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testFixInstance.
@Test
public void testFixInstance() {
ICounter c1 = CounterImpl.getInstance(30, 30);
ICounter c2 = CounterImpl.getInstance(30, 30);
assertSame(c1, c2);
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testVarInstance.
@Test
public void testVarInstance() {
ICounter c1 = CounterImpl.getInstance(31, 30);
ICounter c2 = CounterImpl.getInstance(31, 30);
assertNotSame(c1, c2);
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testGetMissedStatus2.
@Test
public void testGetMissedStatus2() {
ICounter c = CounterImpl.getInstance(5, 0);
assertEquals(ICounter.NOT_COVERED, c.getStatus());
}
use of org.jacoco.core.analysis.ICounter in project jacoco by jacoco.
the class CounterImplTest method testHashCode3.
@Test
public void testHashCode3() {
ICounter c1 = CounterImpl.getInstance(300, 123);
ICounter c2 = CounterImpl.getInstance(300, 124);
assertFalse(c1.hashCode() == c2.hashCode());
}
Aggregations