mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 05:39:51 +00:00
6709cdd1d0
There was a `replace` statement in `go.mod` that prevented Ginkgo from updating. Kubernetes 1.27 requires a new Ginkgo version. Signed-off-by: Niels de Vos <ndevos@ibm.com>
30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
package reporters
|
|
|
|
import (
|
|
"github.com/onsi/ginkgo/v2/types"
|
|
)
|
|
|
|
type Reporter interface {
|
|
SuiteWillBegin(report types.Report)
|
|
WillRun(report types.SpecReport)
|
|
DidRun(report types.SpecReport)
|
|
SuiteDidEnd(report types.Report)
|
|
|
|
//Timeline emission
|
|
EmitFailure(state types.SpecState, failure types.Failure)
|
|
EmitProgressReport(progressReport types.ProgressReport)
|
|
EmitReportEntry(entry types.ReportEntry)
|
|
EmitSpecEvent(event types.SpecEvent)
|
|
}
|
|
|
|
type NoopReporter struct{}
|
|
|
|
func (n NoopReporter) SuiteWillBegin(report types.Report) {}
|
|
func (n NoopReporter) WillRun(report types.SpecReport) {}
|
|
func (n NoopReporter) DidRun(report types.SpecReport) {}
|
|
func (n NoopReporter) SuiteDidEnd(report types.Report) {}
|
|
func (n NoopReporter) EmitFailure(state types.SpecState, failure types.Failure) {}
|
|
func (n NoopReporter) EmitProgressReport(progressReport types.ProgressReport) {}
|
|
func (n NoopReporter) EmitReportEntry(entry types.ReportEntry) {}
|
|
func (n NoopReporter) EmitSpecEvent(event types.SpecEvent) {}
|