mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +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)
|
|
}
|