@@ -169,13 +169,13 @@ func TestLists_ListOfNullableArrayOfFuncContainsValues(t *testing.T) {
169
169
ttype := graphql .NewList (graphql .Int )
170
170
171
171
// `data` is a slice of functions that return values
172
- // Note that its uses the expected signature `func() interface{} {...}`
172
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
173
173
data := []interface {}{
174
- func () interface {} {
175
- return 1
174
+ func () ( interface {}, error ) {
175
+ return 1 , nil
176
176
},
177
- func () interface {} {
178
- return 2
177
+ func () ( interface {}, error ) {
178
+ return 2 , nil
179
179
},
180
180
}
181
181
expected := & graphql.Result {
@@ -193,16 +193,16 @@ func TestLists_ListOfNullableArrayOfFuncContainsNulls(t *testing.T) {
193
193
ttype := graphql .NewList (graphql .Int )
194
194
195
195
// `data` is a slice of functions that return values
196
- // Note that its uses the expected signature `func() interface{} {...}`
196
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
197
197
data := []interface {}{
198
- func () interface {} {
199
- return 1
198
+ func () ( interface {}, error ) {
199
+ return 1 , nil
200
200
},
201
- func () interface {} {
202
- return nil
201
+ func () ( interface {}, error ) {
202
+ return nil , nil
203
203
},
204
- func () interface {} {
205
- return 2
204
+ func () ( interface {}, error ) {
205
+ return 2 , nil
206
206
},
207
207
}
208
208
expected := & graphql.Result {
@@ -354,13 +354,13 @@ func TestLists_NonNullListOfNullableArrayOfFunc_ContainsValues(t *testing.T) {
354
354
ttype := graphql .NewNonNull (graphql .NewList (graphql .Int ))
355
355
356
356
// `data` is a slice of functions that return values
357
- // Note that its uses the expected signature `func() interface{} {...}`
357
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
358
358
data := []interface {}{
359
- func () interface {} {
360
- return 1
359
+ func () ( interface {}, error ) {
360
+ return 1 , nil
361
361
},
362
- func () interface {} {
363
- return 2
362
+ func () ( interface {}, error ) {
363
+ return 2 , nil
364
364
},
365
365
}
366
366
expected := & graphql.Result {
@@ -378,16 +378,16 @@ func TestLists_NonNullListOfNullableArrayOfFunc_ContainsNulls(t *testing.T) {
378
378
ttype := graphql .NewNonNull (graphql .NewList (graphql .Int ))
379
379
380
380
// `data` is a slice of functions that return values
381
- // Note that its uses the expected signature `func() interface{} {...}`
381
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
382
382
data := []interface {}{
383
- func () interface {} {
384
- return 1
383
+ func () ( interface {}, error ) {
384
+ return 1 , nil
385
385
},
386
- func () interface {} {
387
- return nil
386
+ func () ( interface {}, error ) {
387
+ return nil , nil
388
388
},
389
- func () interface {} {
390
- return 2
389
+ func () ( interface {}, error ) {
390
+ return 2 , nil
391
391
},
392
392
}
393
393
expected := & graphql.Result {
@@ -544,11 +544,11 @@ func TestLists_NullableListOfNonNullArrayOfFunc_ContainsValues(t *testing.T) {
544
544
// `data` is a slice of functions that return values
545
545
// Note that its uses the expected signature `func() interface{} {...}`
546
546
data := []interface {}{
547
- func () interface {} {
548
- return 1
547
+ func () ( interface {}, error ) {
548
+ return 1 , nil
549
549
},
550
- func () interface {} {
551
- return 2
550
+ func () ( interface {}, error ) {
551
+ return 2 , nil
552
552
},
553
553
}
554
554
expected := & graphql.Result {
@@ -566,16 +566,16 @@ func TestLists_NullableListOfNonNullArrayOfFunc_ContainsNulls(t *testing.T) {
566
566
ttype := graphql .NewList (graphql .NewNonNull (graphql .Int ))
567
567
568
568
// `data` is a slice of functions that return values
569
- // Note that its uses the expected signature `func() interface{} {...}`
569
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
570
570
data := []interface {}{
571
- func () interface {} {
572
- return 1
571
+ func () ( interface {}, error ) {
572
+ return 1 , nil
573
573
},
574
- func () interface {} {
575
- return nil
574
+ func () ( interface {}, error ) {
575
+ return nil , nil
576
576
},
577
- func () interface {} {
578
- return 2
577
+ func () ( interface {}, error ) {
578
+ return 2 , nil
579
579
},
580
580
}
581
581
expected := & graphql.Result {
@@ -773,13 +773,13 @@ func TestLists_NonNullListOfNonNullArrayOfFunc_ContainsValues(t *testing.T) {
773
773
ttype := graphql .NewNonNull (graphql .NewList (graphql .NewNonNull (graphql .Int )))
774
774
775
775
// `data` is a slice of functions that return values
776
- // Note that its uses the expected signature `func() interface{} {...}`
776
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
777
777
data := []interface {}{
778
- func () interface {} {
779
- return 1
778
+ func () ( interface {}, error ) {
779
+ return 1 , nil
780
780
},
781
- func () interface {} {
782
- return 2
781
+ func () ( interface {}, error ) {
782
+ return 2 , nil
783
783
},
784
784
}
785
785
expected := & graphql.Result {
@@ -797,16 +797,16 @@ func TestLists_NonNullListOfNonNullArrayOfFunc_ContainsNulls(t *testing.T) {
797
797
ttype := graphql .NewNonNull (graphql .NewList (graphql .NewNonNull (graphql .Int )))
798
798
799
799
// `data` is a slice of functions that return values
800
- // Note that its uses the expected signature `func() interface{} {...}`
800
+ // Note that its uses the expected signature `func() ( interface{}, error) {...}`
801
801
data := []interface {}{
802
- func () interface {} {
803
- return 1
802
+ func () ( interface {}, error ) {
803
+ return 1 , nil
804
804
},
805
- func () interface {} {
806
- return nil
805
+ func () ( interface {}, error ) {
806
+ return nil , nil
807
807
},
808
- func () interface {} {
809
- return 2
808
+ func () ( interface {}, error ) {
809
+ return 2 , nil
810
810
},
811
811
}
812
812
expected := & graphql.Result {
0 commit comments