@Test public void logErrorForBundle() throws Exception { telemetryLogger.logErrorForBundle(new NullPointerException()); LogRequest logRequest = inflatePayload(clearcutConnection); assertCommonLogFields(logRequest); SizeAnalysisLog sizeAnalysisLog = extractSourceExtension(logRequest); assertThat(sizeAnalysisLog.getErrorType()).isEqualTo(ErrorType.RUNTIME_ERROR); }
public void logErrorForBundle(Exception e) { uploadLogs(buildResultLog(ImmutableList.of(), e).setArtifactType(ArtifactType.APP_BUNDLE)); }
TelemetryLogger { public void logErrorForBundle(Exception e) { uploadLogs(buildResultLog(ImmutableList.of(), e).setArtifactType(ArtifactType.APP_BUNDLE)); } }
TelemetryLogger { public void logErrorForBundle(Exception e) { uploadLogs(buildResultLog(ImmutableList.of(), e).setArtifactType(ArtifactType.APP_BUNDLE)); } @VisibleForTesting  TelemetryLogger(Clock clock, Preferences preferences, URLStreamHandler urlStreamHandler); }
TelemetryLogger { public void logErrorForBundle(Exception e) { uploadLogs(buildResultLog(ImmutableList.of(), e).setArtifactType(ArtifactType.APP_BUNDLE)); } @VisibleForTesting  TelemetryLogger(Clock clock, Preferences preferences, URLStreamHandler urlStreamHandler); static TelemetryLogger get(); void logResultsForProject(ImmutableList<Suggestion> suggestions); void logErrorForProject(Exception e); void logResultsForBundle(
      File bundleFile, ImmutableList<Suggestion> suggestions); void logErrorForBundle(Exception e); }
TelemetryLogger { public void logErrorForBundle(Exception e) { uploadLogs(buildResultLog(ImmutableList.of(), e).setArtifactType(ArtifactType.APP_BUNDLE)); } @VisibleForTesting  TelemetryLogger(Clock clock, Preferences preferences, URLStreamHandler urlStreamHandler); static TelemetryLogger get(); void logResultsForProject(ImmutableList<Suggestion> suggestions); void logErrorForProject(Exception e); void logResultsForBundle(
      File bundleFile, ImmutableList<Suggestion> suggestions); void logErrorForBundle(Exception e);  }