From 681f41af935f3fb863d0fc2b02071d9ec65b16c2 Mon Sep 17 00:00:00 2001 From: beats-jenkins Date: Wed, 6 Mar 2019 14:13:32 +0100 Subject: [PATCH] remove not needed interface --- metricbeat/mb/testing/modules.go | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/metricbeat/mb/testing/modules.go b/metricbeat/mb/testing/modules.go index 665ddbf09981..234feee35687 100644 --- a/metricbeat/mb/testing/modules.go +++ b/metricbeat/mb/testing/modules.go @@ -209,34 +209,6 @@ func (r *CapturingReporterV2) GetErrors() []error { return r.errs } -// CapturingReporterV2Error is a reporter used for testing which stores all events and errors -type CapturingReporterV2Error struct { - events []mb.Event - errs []error -} - -// Event is used to report an event -func (r *CapturingReporterV2Error) Event(event mb.Event) bool { - r.events = append(r.events, event) - return true -} - -// Error is used to report an error -func (r *CapturingReporterV2Error) Error(err error) bool { - r.errs = append(r.errs, err) - return true -} - -// GetEvents returns all reported events -func (r *CapturingReporterV2Error) GetEvents() []mb.Event { - return r.events -} - -// GetErrors returns all reported errors -func (r *CapturingReporterV2Error) GetErrors() []error { - return r.errs -} - // ReportingFetchV2 runs the given reporting metricset and returns all of the // events and errors that occur during that period. func ReportingFetchV2(metricSet mb.ReportingMetricSetV2) ([]mb.Event, []error) {