Skip to content

Commit 09cd6c3

Browse files
author
Hagai Barel
committed
Add check to enusre mochFetcher implements interface
1 parent 2bf3eb7 commit 09cd6c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

emq_exporter_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ func randFloat() float64 {
223223
//mock fetcher for testing
224224
type mockFetcher struct{}
225225

226+
//ensure mockFetcher implements Fetcher
227+
var _ Fetcher = &mockFetcher{}
228+
226229
func (m *mockFetcher) Fetch() (data map[string]interface{}, err error) {
227230
data = map[string]interface{}{
228231
"nodes_metrics_messages_qos1_sent": randFloat(),

0 commit comments

Comments
 (0)