Skip to content

Commit

Permalink
Add tests for collector.
Browse files Browse the repository at this point in the history
  • Loading branch information
tetafro committed Sep 8, 2023
1 parent ad79844 commit e25ef44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions collector_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package main

import (
"testing"

"github.com/stretchr/testify/require"
)

func TestNewCollector(t *testing.T) {
c := NewCollector(map[string]*ConnectBox{"test": {}})
require.Len(t, c.targets, 1)
}

0 comments on commit e25ef44

Please sign in to comment.