diff options
author | Simon Rozman <simon@rozman.si> | 2019-02-04 11:42:51 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 12:59:42 +0100 |
commit | e821cdabd2930d301d3a12a5d4d1fe8904cd1c14 (patch) | |
tree | d9ee36b25e984460fbd8b990d7fc05be4be51758 /setupapi/setupapi_windows_test.go | |
parent | 38c7acd70f408e63a70ff45f01d0a22f2c4ac2c7 (diff) |
Unify certain variable names
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'setupapi/setupapi_windows_test.go')
-rw-r--r-- | setupapi/setupapi_windows_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) } |