Skip to content

Commit d39e7c2

Browse files
committed
Added named import to definitions test
This makes the test slightly more thorough.
1 parent 14af921 commit d39e7c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

go/ql/test/query-tests/definitions/definitions.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
| greet.go:6:2:6:6 | myfmt | greet.go:3:8:3:12 | myfmt | V |
12
| main.go:6:26:6:28 | who | main.go:5:12:5:14 | who | V |
23
| main.go:11:2:11:6 | greet | main.go:5:6:5:10 | greet | V |
34
| main.go:11:8:11:12 | world | main.go:10:2:10:6 | world | V |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

3-
import "fmt"
3+
import myfmt "fmt"
44

55
func greet2() {
6-
fmt.Println("Hello world!")
6+
myfmt.Println("Hello world!")
77
}

0 commit comments

Comments
 (0)