@Test public void test_failure() { SensorContextTester context = SensorContextTester.create(COVERAGE_DIR); context.settings().setProperty("sonar.go.coverage.reportPaths", "invalid-coverage-path.out"); GoCoverSensor coverSensor = new GoCoverSensor(); coverSensor.execute(context); assertThat(logTester.logs(LoggerLevel.ERROR)) .containsExactly("Coverage report can't be loaded, report file not found, ignoring this file invalid-coverage-path.out."); }
@Override public void execute(SensorContext context) { execute(context, GoPathContext.DEFAULT); }
GoCoverSensor implements Sensor { @Override public void execute(SensorContext context) { execute(context, GoPathContext.DEFAULT); } }
GoCoverSensor implements Sensor { @Override public void execute(SensorContext context) { execute(context, GoPathContext.DEFAULT); }  }
GoCoverSensor implements Sensor { @Override public void execute(SensorContext context) { execute(context, GoPathContext.DEFAULT); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
GoCoverSensor implements Sensor { @Override public void execute(SensorContext context) { execute(context, GoPathContext.DEFAULT); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PATH_KEY; }