Skip to content

Commit 9afdee4

Browse files
committed
Accept changed test results and improve test
1 parent c8f4120 commit 9afdee4

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

go/ql/test/library-tests/semmle/go/aliases/InterfaceImpls/test.expected

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ callTargets
1313
| test.go:57:2:57:29 | call to ImplementMe | test.go:46:1:46:87 | function declaration | ImplementMe |
1414
| test.go:57:2:57:29 | call to ImplementMe | test.go:53:1:53:85 | function declaration | ImplementMe |
1515
#select
16-
| file://:0:0:0:0 | basic interface type | file://:0:0:0:0 | basic interface type |
17-
| file://:0:0:0:0 | basic interface type | test.go:18:6:18:10 | Impl1 |
18-
| file://:0:0:0:0 | basic interface type | test.go:23:6:23:10 | Impl2 |
19-
| file://:0:0:0:0 | basic interface type | test.go:28:6:28:10 | Impl3 |
20-
| file://:0:0:0:0 | basic interface type | test.go:35:6:35:10 | Impl4 |
21-
| file://:0:0:0:0 | basic interface type | test.go:42:6:42:10 | Impl5 |
22-
| file://:0:0:0:0 | basic interface type | test.go:49:6:49:10 | Impl6 |
16+
| file://:0:0:0:0 | basic interface type | * Impl1 |
17+
| file://:0:0:0:0 | basic interface type | * Impl2 |
18+
| file://:0:0:0:0 | basic interface type | * Impl3 |
19+
| file://:0:0:0:0 | basic interface type | * Impl4 |
20+
| file://:0:0:0:0 | basic interface type | * Impl5 |
21+
| file://:0:0:0:0 | basic interface type | * Impl6 |
22+
| file://:0:0:0:0 | basic interface type | Impl1 |
23+
| file://:0:0:0:0 | basic interface type | Impl2 |
24+
| file://:0:0:0:0 | basic interface type | Impl3 |
25+
| file://:0:0:0:0 | basic interface type | Impl4 |
26+
| file://:0:0:0:0 | basic interface type | Impl5 |
27+
| file://:0:0:0:0 | basic interface type | Impl6 |
28+
| file://:0:0:0:0 | basic interface type | interface { ImplementMe func(func(struct { x int }) ) } |

go/ql/test/library-tests/semmle/go/aliases/InterfaceImpls/test.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ from InterfaceType i, Type impl
88
where
99
i.hasMethod("ImplementMe", _) and
1010
impl.implements(i)
11-
select i, impl
11+
select i, impl.pp()

0 commit comments

Comments
 (0)