public class GolangTestOutputBasedReportObserver extends java.lang.Object implements ReportObserver
ReportObserver.NotifierStdStreams.Impl| Constructor and Description |
|---|
GolangTestOutputBasedReportObserver(java.lang.String packageName) |
GolangTestOutputBasedReportObserver(java.lang.String packageName,
java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
closeStdout() |
java.io.OutputStream |
err() |
Report |
getReport() |
protected void |
handleErrLine(java.lang.String line) |
protected void |
handleStdLine(java.lang.String line) |
java.io.OutputStream |
out() |
protected double |
parseTime(java.lang.String time) |
void |
registerNotifier(ReportObserver.Notifier notifier) |
protected void |
writeStderr(int b) |
protected void |
writeStdout(int b) |
public GolangTestOutputBasedReportObserver(@Nonnull
java.lang.String packageName)
public GolangTestOutputBasedReportObserver(@Nonnull
java.lang.String packageName,
@Nonnull
java.nio.charset.Charset charset)
protected void writeStdout(int b)
throws java.io.IOException
java.io.IOExceptionprotected void closeStdout()
throws java.io.IOException
java.io.IOExceptionprotected void writeStderr(int b)
throws java.io.IOException
java.io.IOExceptionprotected void handleStdLine(@Nonnull
java.lang.String line)
throws java.io.IOException
java.io.IOExceptionprotected void handleErrLine(@Nonnull
java.lang.String line)
throws java.io.IOException
java.io.IOException@Nonnegative protected double parseTime(java.lang.String time)
@Nonnull public java.io.OutputStream out()
out in interface StdStreams@Nonnull public java.io.OutputStream err()
err in interface StdStreams@Nonnull public Report getReport()
getReport in interface ReportObserverpublic void registerNotifier(@Nonnull
ReportObserver.Notifier notifier)
registerNotifier in interface ReportObserverpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException