2018-11-30 00:51:12 +00:00
|
|
|
// +build windows
|
|
|
|
|
2016-09-27 14:17:03 +00:00
|
|
|
package collector
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|