Examples of coveredLines()


Examples of org.sonar.api.batch.sensor.test.TestCaseCoverage.coveredLines()

        String testName = entry.key()[1].toString();
        if (!coveragePerTest.get(testFileKey).containsKey(testName)) {
          coveragePerTest.get(testFileKey).put(testName, new HashMap<String, List<Integer>>());
        }
        TestCaseCoverage value = entry.value();
        coveragePerTest.get(testFileKey).get(testName).put(entry.key()[2].toString(), value != null ? value.coveredLines() : null);
      }
    }

    private void storeTestCases(ProjectScanContainer container) {
      TestCaseExecutionCache testCaseCache = container.getComponentByType(TestCaseExecutionCache.class);
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseCoverage.coveredLines()

    value.putUTF(((DefaultInputFile) t.testFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.testName());
    value.putUTF(((DefaultInputFile) t.coveredFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.coveredFile()).relativePath());
    value.put(t.coveredLines().size());
    for (Integer line : t.coveredLines()) {
      value.put(line.intValue());
    }
  }
View Full Code Here

Examples of org.sonar.api.batch.sensor.test.internal.DefaultTestCaseCoverage.coveredLines()

    value.putUTF(((DefaultInputFile) t.testFile()).relativePath());
    value.putUTF(t.testName());
    value.putUTF(((DefaultInputFile) t.coveredFile()).moduleKey());
    value.putUTF(((DefaultInputFile) t.coveredFile()).relativePath());
    value.put(t.coveredLines().size());
    for (Integer line : t.coveredLines()) {
      value.put(line.intValue());
    }
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.