Denis Isaev ccac35a87e Fix false positives with unused identifiers
Issue #265: don't report unused warning when an identifier is
used only in tests.
2018-11-05 14:11:14 +03:00

10 lines
83 B
Go

package p
import "testing"
func TestF(t *testing.T) {
if !f() {
t.Fail()
}
}