...
1 package reporters
2
3 import (
4 "github.com/onsi/ginkgo/v2/types"
5 )
6
7 type Reporter interface {
8 SuiteWillBegin(report types.Report)
9 WillRun(report types.SpecReport)
10 DidRun(report types.SpecReport)
11 SuiteDidEnd(report types.Report)
12
13
14 EmitFailure(state types.SpecState, failure types.Failure)
15 EmitProgressReport(progressReport types.ProgressReport)
16 EmitReportEntry(entry types.ReportEntry)
17 EmitSpecEvent(event types.SpecEvent)
18 }
19
20 type NoopReporter struct{}
21
22 func (n NoopReporter) SuiteWillBegin(report types.Report) {}
23 func (n NoopReporter) WillRun(report types.SpecReport) {}
24 func (n NoopReporter) DidRun(report types.SpecReport) {}
25 func (n NoopReporter) SuiteDidEnd(report types.Report) {}
26 func (n NoopReporter) EmitFailure(state types.SpecState, failure types.Failure) {}
27 func (n NoopReporter) EmitProgressReport(progressReport types.ProgressReport) {}
28 func (n NoopReporter) EmitReportEntry(entry types.ReportEntry) {}
29 func (n NoopReporter) EmitSpecEvent(event types.SpecEvent) {}
30
View as plain text