@@ -28,6 +28,7 @@ func TestObjectMappingWithFunction(t *testing.T) {
28
28
mappings := map [string ]interface {}{"addresses" : arrayMapping }
29
29
factory := NewFactory (resolve .GetBasicResolver ())
30
30
mapper , err := factory .NewMapper (mappings )
31
+ assert .Nil (t , err )
31
32
32
33
results , err := mapper .Apply (nil )
33
34
assert .Nil (t , err )
@@ -58,6 +59,7 @@ func TestObjectMappingWithArray(t *testing.T) {
58
59
mappings := map [string ]interface {}{"addresses" : arrayMapping }
59
60
factory := NewFactory (resolve .GetBasicResolver ())
60
61
mapper , err := factory .NewMapper (mappings )
62
+ assert .Nil (t , err )
61
63
62
64
results , err := mapper .Apply (nil )
63
65
assert .Nil (t , err )
@@ -106,6 +108,7 @@ func TestRootObjectArray(t *testing.T) {
106
108
mappings := map [string ]interface {}{"target" : arrayMapping }
107
109
factory := NewFactory (resolve .GetBasicResolver ())
108
110
mapper , err := factory .NewMapper (mappings )
111
+ assert .Nil (t , err )
109
112
110
113
results , err := mapper .Apply (scope )
111
114
assert .Nil (t , err )
@@ -127,6 +130,7 @@ func TestRootLiteralArray(t *testing.T) {
127
130
mappings := map [string ]interface {}{"target" : arrayMapping }
128
131
factory := NewFactory (resolve .GetBasicResolver ())
129
132
mapper , err := factory .NewMapper (mappings )
133
+ assert .Nil (t , err )
130
134
131
135
results , err := mapper .Apply (nil )
132
136
assert .Nil (t , err )
@@ -160,6 +164,7 @@ func TestPrimitiveArray(t *testing.T) {
160
164
mappings := map [string ]interface {}{"target" : arrayMapping }
161
165
factory := NewFactory (resolve .GetBasicResolver ())
162
166
mapper , err := factory .NewMapper (mappings )
167
+ assert .Nil (t , err )
163
168
164
169
attr := make (map [string ]interface {})
165
170
@@ -207,6 +212,7 @@ func TestRootLiteralArrayMapping(t *testing.T) {
207
212
mappings := map [string ]interface {}{"target" : arrayMapping }
208
213
factory := NewFactory (resolve .GetBasicResolver ())
209
214
mapper , err := factory .NewMapper (mappings )
215
+ assert .Nil (t , err )
210
216
211
217
results , err := mapper .Apply (scope )
212
218
assert .Nil (t , err )
@@ -244,6 +250,7 @@ func TestRootLiteralNumberArrayMapping(t *testing.T) {
244
250
mappings := map [string ]interface {}{"target" : arrayMapping }
245
251
factory := NewFactory (resolve .GetBasicResolver ())
246
252
mapper , err := factory .NewMapper (mappings )
253
+ assert .Nil (t , err )
247
254
248
255
results , err := mapper .Apply (scope )
249
256
assert .Nil (t , err )
@@ -286,6 +293,7 @@ func TestRootArrayMapping(t *testing.T) {
286
293
mappings := map [string ]interface {}{"target" : arrayMapping }
287
294
factory := NewFactory (resolve .GetBasicResolver ())
288
295
mapper , err := factory .NewMapper (mappings )
296
+ assert .Nil (t , err )
289
297
290
298
results , err := mapper .Apply (scope )
291
299
assert .Nil (t , err )
@@ -309,6 +317,7 @@ func TestStringStringMap(t *testing.T) {
309
317
mappings := map [string ]interface {}{"target" : arrayMapping }
310
318
factory := NewFactory (resolve .GetBasicResolver ())
311
319
mapper , err := factory .NewMapper (mappings )
320
+ assert .Nil (t , err )
312
321
313
322
results , err := mapper .Apply (nil )
314
323
assert .Nil (t , err )
@@ -386,6 +395,7 @@ func TestArrayMappingWithNest(t *testing.T) {
386
395
mappings := map [string ]interface {}{"addresses" : arrayMapping }
387
396
factory := NewFactory (resolve .GetBasicResolver ())
388
397
mapper , err := factory .NewMapper (mappings )
398
+ assert .Nil (t , err )
389
399
390
400
attrs := map [string ]interface {}{"field" : arrayData }
391
401
scope := data .NewSimpleScope (attrs , nil )
@@ -448,6 +458,7 @@ func TestArrayMappingWithFunction(t *testing.T) {
448
458
mappings := map [string ]interface {}{"addresses" : arrayMapping }
449
459
factory := NewFactory (resolve .GetBasicResolver ())
450
460
mapper , err := factory .NewMapper (mappings )
461
+ assert .Nil (t , err )
451
462
452
463
attrs := map [string ]interface {}{"field" : arrayData }
453
464
scope := data .NewSimpleScope (attrs , nil )
@@ -525,6 +536,7 @@ func TestArrayMappingWithFunction3Level(t *testing.T) {
525
536
mappings := map [string ]interface {}{"addresses" : arrayMapping }
526
537
factory := NewFactory (resolve .GetBasicResolver ())
527
538
mapper , err := factory .NewMapper (mappings )
539
+ assert .Nil (t , err )
528
540
529
541
attrs := map [string ]interface {}{"field" : arrayValue }
530
542
scope := data .NewSimpleScope (attrs , nil )
0 commit comments