diff --git a/collector_test.go b/collector_test.go new file mode 100644 index 0000000..73dac66 --- /dev/null +++ b/collector_test.go @@ -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) +}