Well, the init() function in the test package leads to an additional
complaint:

$ deadcode ./...
test/test.go:8:6: unreachable func: init#1
test/test.go:14:6: unreachable func: SkipIfIntegration

It works it I import the test package in my main package and fake call it
there: if false { test.SkipIfIntegration(nil) }

But this feels so wrong :-(

I also read about the -filter flag of deadcode, but I couldn't figure out a
regex, which would exclude the test package.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CALWqRZrkGXN2NKFAt6fCwo2E_NkeHb7SkNzGtO1cAfB%2BXy255w%40mail.gmail.com.

Reply via email to