mirror of
https://github.com/prometheus-community/windows_exporter
synced 2024-12-25 07:52:05 +00:00
0711268d3c
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
20 lines
341 B
Go
20 lines
341 B
Go
//go:build windows
|
|
|
|
package net
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNetworkToInstanceName(t *testing.T) {
|
|
data := map[string]string{
|
|
"Intel[R] Dual Band Wireless-AC 8260": "Intel_R__Dual_Band_Wireless_AC_8260",
|
|
}
|
|
for in, out := range data {
|
|
got := mangleNetworkName(in)
|
|
if got != out {
|
|
t.Error("expected", out, "got", got)
|
|
}
|
|
}
|
|
}
|