1 | package main |
---|---|
2 | |
3 | // Tests of various queries on a program containing only "soft" errors. |
4 | // See go.tools/guru/guru_test.go for explanation. |
5 | // See main.golden for expected query results. |
6 | |
7 | func _() { |
8 | var i int // "unused var" is a soft error |
9 | } |
10 | |
11 | func f() {} // @callers softerrs-callers-f "f" |
12 | |
13 | func main() { |
14 | f() // @describe softerrs-describe-f "f" |
15 | } |
16 |