fleet/server/test/testingt.go
WangXiang 468754f2b9
Format and clean code (#774)
1. use [staticcheck](https://staticcheck.io/) to check the code, and fix some issues.
2. use `go fmt` to format the code.
3. use `go mod tidy` clean the go mod.
2021-05-17 10:29:50 -07:00

17 lines
267 B
Go

package test
import "testing"
type quiet struct {
*testing.T
}
// Quiet returns a wrapper around testing.T that silences Logf calls
func Quiet(t *testing.T) *quiet {
return &quiet{t}
}
func (q *quiet) Logf(format string, args ...interface{}) {
// No logging
}