@@ -23,33 +23,33 @@ func TestWithLoginURL(t *testing.T) {
23
23
var testCases = []struct {
24
24
description string
25
25
urlParm string
26
- expectUrlLogin string
26
+ expectURLLogin string
27
27
isErrNil bool
28
28
}{
29
29
{
30
30
description : "should assign a valid url without error" ,
31
31
urlParm : "http://fake.fake" ,
32
- expectUrlLogin : "http://fake.fake" ,
32
+ expectURLLogin : "http://fake.fake" ,
33
33
isErrNil : true ,
34
34
},
35
35
{
36
36
description : "should assign a sanitizable url without error" ,
37
37
urlParm : " http://fake.fake " ,
38
- expectUrlLogin : "http://fake.fake" ,
38
+ expectURLLogin : "http://fake.fake" ,
39
39
isErrNil : true ,
40
40
},
41
41
{
42
42
description : "should not assign an invalid url, and should return an error" ,
43
43
urlParm : "not a parseable url" ,
44
- expectUrlLogin : "" ,
44
+ expectURLLogin : "" ,
45
45
isErrNil : false ,
46
46
},
47
47
}
48
48
for _ , testCase := range testCases {
49
49
t .Run (testCase .description , func (t * testing.T ) {
50
50
loginURL = ""
51
51
err := WithLoginURL (testCase .urlParm )
52
- assert .Equal (t , testCase .expectUrlLogin , loginURL )
52
+ assert .Equal (t , testCase .expectURLLogin , loginURL )
53
53
assert .Equal (t , testCase .isErrNil , err == nil )
54
54
})
55
55
}
0 commit comments