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
|
|
@ -51,7 +51,6 @@ type fakeDB struct {
|
|||
name string
|
||||
|
||||
mu sync.Mutex
|
||||
free []*fakeConn
|
||||
tables map[string]*table
|
||||
badConn bool
|
||||
}
|
||||
|
|
@ -76,12 +75,6 @@ type row struct {
|
|||
cols []interface{} // must be same size as its table colname + coltype
|
||||
}
|
||||
|
||||
func (r *row) clone() *row {
|
||||
nrow := &row{cols: make([]interface{}, len(r.cols))}
|
||||
copy(nrow.cols, r.cols)
|
||||
return nrow
|
||||
}
|
||||
|
||||
type fakeConn struct {
|
||||
db *fakeDB // where to return ourselves to
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue