Skip to content

Commit 08e61b2

Browse files
committed
Fix test to gave almost the same results
1 parent 0c7da49 commit 08e61b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go/ql/test/library-tests/semmle/go/Types/StructFields.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| aliases.go:19:6:19:7 | S3 | aliases.go:6:18:6:37 | struct type | x | int |
2-
| aliases.go:19:6:19:7 | S3 | aliases.go:8:18:8:37 | struct type | x | int |
1+
| aliases.go:19:6:19:7 | S3 | aliases.go:6:18:6:37 | struct type | x | aliasesX |
2+
| aliases.go:19:6:19:7 | S3 | aliases.go:8:18:8:37 | struct type | x | aliasesY |
33
| aliases.go:19:6:19:7 | S3 | aliases.go:19:9:19:23 | struct type | x | int |
44
| cyclic.go:3:6:3:6 | s | cyclic.go:3:8:5:1 | struct type | s | * s |
55
| cyclic.go:7:6:7:6 | t | cyclic.go:7:8:10:1 | struct type | f | int |

go/ql/test/library-tests/semmle/go/Types/StructFields.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import go
22

33
from StructTypeExpr ste, NamedType named, string name, Type tp
44
where
5-
named.getUnderlyingType() = ste.getType() and
5+
identicalUpToDeepUnaliasing(named.getUnderlyingType(), ste.getType()) and
66
ste.getType().(StructType).hasField(name, tp)
77
select named, ste, name, tp.pp()

0 commit comments

Comments
 (0)