aboutsummaryrefslogtreecommitdiff
path: root/tun/wintun/setupapi/setupapi_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/wintun/setupapi/setupapi_windows_test.go')
-rw-r--r--tun/wintun/setupapi/setupapi_windows_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tun/wintun/setupapi/setupapi_windows_test.go b/tun/wintun/setupapi/setupapi_windows_test.go
index b8f4bc7..32e0f1e 100644
--- a/tun/wintun/setupapi/setupapi_windows_test.go
+++ b/tun/wintun/setupapi/setupapi_windows_test.go
@@ -361,6 +361,12 @@ func TestSetupDiGetDeviceInstallParams(t *testing.T) {
t.Errorf("Error calling SetupDiGetDeviceInstallParams: %s", err.Error())
}
}
+
+ params := &DevInstallParams{}
+ params.SetDriverPath("foobar")
+ if params.GetDriverPath() != "foobar" {
+ t.Error("DevInstallParams.(Get|Set)DriverPath() differ")
+ }
}
func TestSetupDiClassNameFromGuidEx(t *testing.T) {