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}
for _, kt := range supportedKeyTypes {
for s, l := range pemData {
for _, keyType := range supportedKeyTypes {
for pemString, expectedResult := range pemData {
kp, err := NewKeyPairBuilder().
SetPrivateKey([]byte(s)).
SetPrivateKey([]byte(pemString)).
SetName(name).
SetType(kt).
SetType(keyType).
Build()
if err != nil {
t.Fatal(err)
}
err = l.matches(kp)
err = expectedResult.matches(kp)
if err != nil {
t.Fatal(err)
}