Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.ICounter


    assertEquals(0.0, c.getCoveredRatio(), 0.0);
  }

  @Test
  public void testGetCoveredRatio3() {
    ICounter c = CounterImpl.getInstance(0, 0);
    assertTrue(Double.isNaN(c.getCoveredRatio()));
  }
View Full Code Here


    assertTrue(Double.isNaN(c.getCoveredRatio()));
  }

  @Test
  public void testGetMissedRatio1() {
    ICounter c = CounterImpl.getInstance(10, 30);
    assertEquals(0.25, c.getMissedRatio(), 0.0);
  }
View Full Code Here

    assertEquals(0.25, c.getMissedRatio(), 0.0);
  }

  @Test
  public void testGetMissedRatio2() {
    ICounter c = CounterImpl.getInstance(0, 20);
    assertEquals(0.0, c.getMissedRatio(), 0.0);
  }
View Full Code Here

    assertEquals(0.0, c.getMissedRatio(), 0.0);
  }

  @Test
  public void testGetMissedRatio3() {
    ICounter c = CounterImpl.getInstance(0, 0);
    assertTrue(Double.isNaN(c.getMissedRatio()));
  }
View Full Code Here

    assertTrue(Double.isNaN(c.getMissedRatio()));
  }

  @Test
  public void testGetMissedStatus1() {
    ICounter c = CounterImpl.getInstance(0, 0);
    assertEquals(ICounter.EMPTY, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.EMPTY, c.getStatus());
  }

  @Test
  public void testGetMissedStatus2() {
    ICounter c = CounterImpl.getInstance(5, 0);
    assertEquals(ICounter.NOT_COVERED, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.NOT_COVERED, c.getStatus());
  }

  @Test
  public void testGetMissedStatus3() {
    ICounter c = CounterImpl.getInstance(0, 5);
    assertEquals(ICounter.FULLY_COVERED, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.FULLY_COVERED, c.getStatus());
  }

  @Test
  public void testGetMissedStatus4() {
    ICounter c = CounterImpl.getInstance(2, 3);
    assertEquals(ICounter.PARTLY_COVERED, c.getStatus());
  }
View Full Code Here

    assertEquals(ICounter.PARTLY_COVERED, c.getStatus());
  }

  @Test
  public void testEquals1() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(300, 123);
    assertEquals(c1, c2);
  }
View Full Code Here

    assertEquals(c1, c2);
  }

  @Test
  public void testEquals2() {
    ICounter c1 = CounterImpl.getInstance(300, 123);
    ICounter c2 = CounterImpl.getInstance(400, 123);
    assertFalse(c1.equals(c2));
  }
View Full Code Here

TOP

Related Classes of org.jacoco.core.analysis.ICounter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.