mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
19 lines
395 B
Go
19 lines
395 B
Go
//go:build windows
|
|
|
|
package cpu_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/prometheus-community/windows_exporter/internal/collector/cpu"
|
|
"github.com/prometheus-community/windows_exporter/internal/testutils"
|
|
)
|
|
|
|
func BenchmarkCollector(b *testing.B) {
|
|
testutils.FuncBenchmarkCollector(b, cpu.Name, cpu.NewWithFlags)
|
|
}
|
|
|
|
func TestCollector(t *testing.T) {
|
|
testutils.TestCollector(t, cpu.New, nil)
|
|
}
|