Skip to content

Commit

Permalink
remove not needed interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Mar 6, 2019
1 parent 4ee1e12 commit 681f41a
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions metricbeat/mb/testing/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 681f41a

Please sign in to comment.