@@ -35,12 +35,12 @@ func GetTest() {
35
35
rtc := setup()
36
36
37
37
// nil or primitive values are not allowed
38
- rtc.Get("", nil, nil) // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
38
+ rtc.Get("", nil, nil) // __ERROR__ "expected non nil struct as 2nd arg to Get "
39
39
rtc.Get("", T1{}, nil) // __ERROR__ "expected configuration object as 3rd arg but got nil"
40
- rtc.Get("", nil, &T1{}) // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
41
- rtc.Get("", true, false) // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
42
- rtc.Get("", "", "") // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
43
- rtc.Get("", 123, 456) // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
40
+ rtc.Get("", nil, &T1{}) // __ERROR__ "expected non nil struct as 2nd arg to Get "
41
+ rtc.Get("", true, false) // __ERROR__ "expected non nil struct as 2nd arg to Get "
42
+ rtc.Get("", "", "") // __ERROR__ "expected non nil struct as 2nd arg to Get "
43
+ rtc.Get("", 123, 456) // __ERROR__ "expected non nil struct as 2nd arg to Get "
44
44
45
45
// 3rd arg needs to be a ref (update in-place)
46
46
t1 := T1{}
@@ -82,8 +82,8 @@ func SubscribeTest() {
82
82
rtc := setup()
83
83
84
84
// nil args
85
- rtc.Subscribe("", nil, nil) // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
86
- rtc.Subscribe("", nil, func(c interface{}) *graphene.ApplyError { // __ERROR__ "expected 2nd arg to be non nil but got <nil> "
85
+ rtc.Subscribe("", nil, nil) // __ERROR__ "expected non nil struct as 2nd arg to Get "
86
+ rtc.Subscribe("", nil, func(c interface{}) *graphene.ApplyError { // __ERROR__ "expected non nil struct as 2nd arg to Get "
87
87
return nil
88
88
})
89
89
t1 := T1{}
0 commit comments