Skip to content

Commit

Permalink
Add check to enusre mochFetcher implements interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagai Barel committed Feb 5, 2019
1 parent 2bf3eb7 commit 09cd6c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emq_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func randFloat() float64 {
//mock fetcher for testing
type mockFetcher struct{}

//ensure mockFetcher implements Fetcher
var _ Fetcher = &mockFetcher{}

func (m *mockFetcher) Fetch() (data map[string]interface{}, err error) {
data = map[string]interface{}{
"nodes_metrics_messages_qos1_sent": randFloat(),
Expand Down

0 comments on commit 09cd6c3

Please sign in to comment.