CodeCoverageStore { public static void visitProbes(final int classId, final int offset, final boolean[] probes) { final boolean[] bs = CLASS_HITS.get(classId); bs[CLASS_HIT_INDEX] = true; for (int i = 0; i != probes.length; i++) { if (probes[i]) { bs[i + offset + 1] = true; } } } private  CodeCoverageStore(); static void init(final InvokeReceiver invokeQueue); static void visitSingleProbe(final int classId, final int probe); static void visitProbes(final int classId, final int offset,
      final boolean[] probes); static void visitProbes(final int classId, final int offset,
      final boolean p0); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12, final boolean p13); static void visitProbes(final int classId, final int offset,
      final boolean p0, final boolean p1, final boolean p2, final boolean p3,
      final boolean p4, final boolean p5, final boolean p6, final boolean p7,
      final boolean p8, final boolean p9, final boolean p10, final boolean p11,
      final boolean p12, final boolean p13, final boolean p14); static synchronized void reset(); static synchronized Collection<Long> getHits(); static int registerClass(final String className); static void registerMethod(final int clazz, final String methodName,
      final String methodDesc, final int firstProbe, final int lastProbe); static int decodeClassId(final long value); static int decodeLineId(final long value); static long encode(final int classId, final int line); static void registerClassProbes(final int classId, int probeCount); static void resetAllStaticState(); static final String CLASS_NAME; static final String PROBE_METHOD_NAME; }
@Test public void shouldReportCorrectCoverageForSpecialisation8() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7]); } }; assertLineCombinations(8, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation9() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8]); } }; assertLineCombinations(9, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation10() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9]); } }; assertLineCombinations(10, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation11() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9], probes[10]); } }; assertLineCombinations(11, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation12() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9], probes[10], probes[11]); } }; assertLineCombinations(12, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation13() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9], probes[10], probes[11], probes[12]); } }; assertLineCombinations(13, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation14() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9], probes[10], probes[11], probes[12], probes[13]); } }; assertLineCombinations(14, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation15() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6], probes[7], probes[8], probes[9], probes[10], probes[11], probes[12], probes[13], probes[14]); } }; assertLineCombinations(15, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation1() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0]); } }; assertLineCombinations(1, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation2() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1]); } }; assertLineCombinations(2, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation3() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2]); } }; assertLineCombinations(3, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation4() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3]); } }; assertLineCombinations(4, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation5() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4]); } }; assertLineCombinations(5, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation6() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5]); } }; assertLineCombinations(6, se); }
@Test public void shouldReportCorrectCoverageForSpecialisation7() { final SideEffect2<Integer, boolean[]> se = new SideEffect2<Integer, boolean[]>() { @Override public void apply(final Integer classId, final boolean[] probes) { CodeCoverageStore.visitProbes(classId, 0, probes[0], probes[1], probes[2], probes[3], probes[4], probes[5], probes[6]); } }; assertLineCombinations(7, se); }