better variable names in test function

This commit is contained in:
chris marget 2019-02-06 14:39:39 -05:00
parent 75bd3c6951
commit 3515afa994
1 changed files with 5 additions and 5 deletions

View File

@ -532,17 +532,17 @@ func TestDefaultKeyPairBuilder_SetPrivateKey_Override(t *testing.T) {
} }
supportedKeyTypes := []KeyPairType{Rsa, Dsa} supportedKeyTypes := []KeyPairType{Rsa, Dsa}
for _, kt := range supportedKeyTypes { for _, keyType := range supportedKeyTypes {
for s, l := range pemData { for pemString, expectedResult := range pemData {
kp, err := NewKeyPairBuilder(). kp, err := NewKeyPairBuilder().
SetPrivateKey([]byte(s)). SetPrivateKey([]byte(pemString)).
SetName(name). SetName(name).
SetType(kt). SetType(keyType).
Build() Build()
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
err = l.matches(kp) err = expectedResult.matches(kp)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }