use of com.uber.jenkins.phabricator.coverage.FakeCoverageProvider in project phabricator-jenkins-plugin by uber.
the class BuildResultProcessorTest method testProcessCoverage.
@Test
public void testProcessCoverage() throws Exception {
CoverageProvider provider = new FakeCoverageProvider(TestUtils.getDefaultLineCoverage());
processor.processCoverage(provider);
assertNotNull(processor.getCoverage());
assertNotNull(processor.getCoverage().get("file.go"));
assertEquals("NCUC", processor.getCoverage().get("file.go"));
}
use of com.uber.jenkins.phabricator.coverage.FakeCoverageProvider in project phabricator-jenkins-plugin by uber.
the class BuildResultProcessorTest method testProcessEmptyCoverage.
@Test
public void testProcessEmptyCoverage() {
CoverageProvider provider = new FakeCoverageProvider(null);
processor.processCoverage(provider);
assertNull(processor.getCoverage());
}
Aggregations