You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import"testing"funcTestGenaratePath(t*testing.T) {
tmp:=GenaratePath()
iftmp=="" {
t.Fatal(tmp)
}
}
run:
⋊>~/t/t go build
⋊>~/t/t ls
t* t.go t_test.go
⋊>~/t/t go test -v
# _/home/chen/tmpfs/t
./t.go:10:9: Sprintf format %s reads arg #2, but call has 1 arg
FAIL _/home/chen/tmpfs/t [build failed]
What did you expect to see?
check the number of args and tags's type in format for go build
The text was updated successfully, but these errors were encountered:
meilihao
changed the title
fmt: skip checking the number of args in format for go build and
fmt: skip checking the number of args in format for go build and different from go test
Jan 21, 2019
What version of Go are you using (
go version
)?go version go1.12beta2 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
t.go:
t_test.go
run:
What did you expect to see?
check the number of args and tags's type in format for
go build
The text was updated successfully, but these errors were encountered: