mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
468754f2b9
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.
17 lines
267 B
Go
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
|
|
}
|