Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go1.6.2
- What operating system and processor architecture are you using (
go env)?
The playground
- What did you do?
https://play.golang.org/p/hsjwmQwtsb
Relevant snippet:
func TestFoo(t *testing.T) {
t.Fail("what?")
}
- What did you expect to see?
prog.go:14: too many arguments in call to t.Fail
- What did you see instead?
prog.go:14: too many arguments in call to t.common.Fail
The .common bit is unexpected and an implementation detail. Running godoc testing Fail shows a simple method func (c *T) Fail(), and the fact that testing.T embeds testing.common does not seem useful.
Please answer these questions before submitting your issue. Thanks!
go version)?go1.6.2
go env)?The playground
https://play.golang.org/p/hsjwmQwtsb
Relevant snippet:
The
.commonbit is unexpected and an implementation detail. Runninggodoc testing Failshows a simple methodfunc (c *T) Fail(), and the fact thattesting.Tembedstesting.commondoes not seem useful.