mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-03 21:34:18 +00:00
18 lines
441 B
Go
18 lines
441 B
Go
package logon_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/logon"
|
|
"github.com/prometheus-community/windows_exporter/internal/testutils"
|
|
)
|
|
|
|
func BenchmarkCollector(b *testing.B) {
|
|
// No context name required as Collector source is WMI
|
|
testutils.FuncBenchmarkCollector(b, logon.Name, logon.NewWithFlags)
|
|
}
|
|
|
|
func TestCollector(t *testing.T) {
|
|
testutils.TestCollector(t, logon.New, nil)
|
|
}
|