mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
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
|
||
|
}
|