MCPcopy
hub / github.com/perkeep/perkeep / TLog

Function TLog

pkg/test/test.go:42–47  ·  view source on GitHub ↗

TLog changes the log package's output to log to t and returns a function to reset it back to stderr.

(t testing.TB)

Source from the content-addressed store, hash-verified

40// TLog changes the log package's output to log to t and returns a function
41// to reset it back to stderr.
42func TLog(t testing.TB) func() {
43 log.SetOutput(twriter{t: t})
44 return func() {
45 log.SetOutput(os.Stderr)
46 }
47}
48
49type twriter struct {
50 t testing.TB

Callers 8

testQueryTypesFunction · 0.92
newTestStorageFunction · 0.92
TestSortedFunction · 0.92
indexTestFunction · 0.92
newShareTesterIdxFunction · 0.92
TestTLogFunction · 0.85

Calls

no outgoing calls

Tested by 8

testQueryTypesFunction · 0.74
newTestStorageFunction · 0.74
TestSortedFunction · 0.74
indexTestFunction · 0.74
newShareTesterIdxFunction · 0.74
TestTLogFunction · 0.68