mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: delete dead test code
This deletes unused code and helpers from tests. Change-Id: Ie31d46115f558ceb8da6efbf90c3c204e03b0d7e Reviewed-on: https://go-review.googlesource.com/20927 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
1a82946ea5
commit
b2cf571040
23 changed files with 4 additions and 211 deletions
|
|
@ -44,16 +44,12 @@ type pair struct {
|
|||
s string
|
||||
}
|
||||
|
||||
func isDigit(c uint8) bool { return '0' <= c && c <= '9' }
|
||||
|
||||
func assert(t *testing.T, s, want string) {
|
||||
if s != want {
|
||||
t.Errorf("have %#q want %#q", s, want)
|
||||
}
|
||||
}
|
||||
|
||||
func typestring(i interface{}) string { return TypeOf(i).String() }
|
||||
|
||||
var typeTests = []pair{
|
||||
{struct{ x int }{}, "int"},
|
||||
{struct{ x int8 }{}, "int8"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue