MCPcopy Index your code
hub / github.com/coder/coder / Logf

Method Logf

testutil/expecter/expecter.go:339–345  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

337}
338
339func (e *Expecter) Logf(format string, args ...interface{}) {
340 e.t.Helper()
341
342 // Match regular logger timestamp format, we seem to be logging in
343 // UTC in other places as well, so match here.
344 e.t.Logf("%s: %s: %s", time.Now().UTC().Format("2006-01-02 15:04:05.000"), e.name.Load(), fmt.Sprintf(format, args...))
345}
346
347func (e *Expecter) fatalf(reason string, format string, args ...interface{}) {
348 e.t.Helper()

Callers 10

NewFunction · 0.95
CloseMethod · 0.95
logCloseMethod · 0.95
expectMatcherFuncMethod · 0.95
ExpectNoMatchBeforeMethod · 0.95
PeekMethod · 0.95
ReadRuneMethod · 0.95
ReadLineMethod · 0.95
doMatchWithDeadlineMethod · 0.95
fatalfMethod · 0.95

Calls 4

HelperMethod · 0.65
LogfMethod · 0.65
FormatMethod · 0.65
LoadMethod · 0.45

Tested by

no test coverage detected