You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoJmespathExpressionGenerator.java
Copy file name to clipboardexpand all lines: codegen/smithy-go-codegen/src/test/java/software/amazon/smithy/go/codegen/GoJmespathExpressionGeneratorTest.java
+109-1
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ public class GoJmespathExpressionGeneratorTest {
43
43
objectList: ObjectList
44
44
objectMap: ObjectMap
45
45
nested: NestedStruct
46
+
nullableIntegerA: Integer
47
+
nullableIntegerB: Integer
46
48
}
47
49
48
50
structure Object {
@@ -318,6 +320,7 @@ public void testComparatorStringLHSNil() {
318
320
}
319
321
v4 := "foo"
320
322
var v5 bool
323
+
321
324
if v2 != nil {
322
325
v5 = string(*v2) == string(v4)
323
326
}
@@ -345,6 +348,7 @@ public void testComparatorStringRHSNil() {
345
348
v3 = v4
346
349
}
347
350
var v5 bool
351
+
348
352
if v3 != nil {
349
353
v5 = string(v1) == string(*v3)
350
354
}
@@ -372,9 +376,10 @@ public void testComparatorStringBothNil() {
372
376
}
373
377
v4 := input.SimpleShape
374
378
var v5 bool
379
+
375
380
if v2 != nil && v4 != nil {
376
381
v5 = string(*v2) == string(*v4)
377
-
}
382
+
}else { v5 = v2 == nil && v4 == nil }
378
383
"""));
379
384
}
380
385
@@ -546,4 +551,107 @@ public void testMultiSelectFlatten() {
0 commit comments