windows_exporter/internal/collector/tcp/tcp_test.go

19 lines
401 B
Go
Raw Normal View History

//go:build windows
package tcp_test
import (
"testing"
"github.com/prometheus-community/windows_exporter/internal/collector/tcp"
"github.com/prometheus-community/windows_exporter/internal/utils/testutils"
)
func BenchmarkCollector(b *testing.B) {
testutils.FuncBenchmarkCollector(b, tcp.Name, tcp.NewWithFlags)
}
2024-10-17 00:29:53 +00:00
func TestCollector(t *testing.T) {
testutils.TestCollector(t, tcp.New, nil)
}