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

Method logf

pty/ptytest/ptytest.go:364–370  ·  view source on GitHub ↗
(format string, args ...interface{})

Source from the content-addressed store, hash-verified

362}
363
364func (e *outExpecter) logf(format string, args ...interface{}) {
365 e.t.Helper()
366
367 // Match regular logger timestamp format, we seem to be logging in
368 // UTC in other places as well, so match here.
369 e.t.Logf("%s: %s: %s", time.Now().UTC().Format("2006-01-02 15:04:05.000"), e.name.Load(), fmt.Sprintf(format, args...))
370}
371
372func (e *outExpecter) fatalf(reason string, format string, args ...interface{}) {
373 e.t.Helper()

Callers 12

newExpecterFunction · 0.95
expectMatcherFuncMethod · 0.95
ExpectNoMatchBeforeMethod · 0.95
PeekMethod · 0.95
ReadRuneMethod · 0.95
ReadLineMethod · 0.95
doMatchWithDeadlineMethod · 0.95
fatalfMethod · 0.95
CloseMethod · 0.80
WriteMethod · 0.80
WriteLineMethod · 0.80
CloseMethod · 0.80

Calls 4

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

Tested by

no test coverage detected