From e821cdabd2930d301d3a12a5d4d1fe8904cd1c14 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 4 Feb 2019 11:42:51 +0100 Subject: Unify certain variable names Signed-off-by: Simon Rozman --- setupapi/setupapi_windows_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'setupapi/setupapi_windows_test.go') diff --git a/setupapi/setupapi_windows_test.go b/setupapi/setupapi_windows_test.go index 76257ac..062b6bd 100644 --- a/setupapi/setupapi_windows_test.go +++ b/setupapi/setupapi_windows_test.go @@ -21,17 +21,17 @@ func init() { } func TestSetupDiClassNameFromGuidEx(t *testing.T) { - className, err := SetupDiClassNameFromGuidEx(&deviceClassNetGUID, "") + deviceClassNetName, err := SetupDiClassNameFromGuidEx(&deviceClassNetGUID, "") if err != nil { t.Errorf("Error calling SetupDiClassNameFromGuidEx: %s", err.Error()) - } else if strings.ToLower(className) != "net" { + } else if strings.ToLower(deviceClassNetName) != "net" { t.Errorf("SetupDiClassNameFromGuidEx(%x) should return \"Net\"", deviceClassNetGUID) } - className, err = SetupDiClassNameFromGuidEx(&deviceClassNetGUID, computerName) + deviceClassNetName, err = SetupDiClassNameFromGuidEx(&deviceClassNetGUID, computerName) if err != nil { t.Errorf("Error calling SetupDiClassNameFromGuidEx: %s", err.Error()) - } else if strings.ToLower(className) != "net" { + } else if strings.ToLower(deviceClassNetName) != "net" { t.Errorf("SetupDiClassNameFromGuidEx(%x) should return \"Net\"", deviceClassNetGUID) } -- cgit v1.2.3