MCPcopy Create free account
hub / github.com/rogpeppe/go-internal / Logf

Method Logf

testscript/testscript.go:982–986  ·  view source on GitHub ↗

Logf appends the given formatted message to the test log transcript.

(format string, args ...any)

Source from the content-addressed store, hash-verified

980
981// Logf appends the given formatted message to the test log transcript.
982func (ts *TestScript) Logf(format string, args ...any) {
983 format = strings.TrimSuffix(format, "\n")
984 fmt.Fprintf(&ts.log, format, args...)
985 ts.log.WriteByte('\n')
986}
987
988// exec runs the given command line (an actual subprocess, not simulated)
989// in ts.cd with environment ts.env and then returns collected standard output and standard error.

Callers 15

applyScriptUpdatesMethod · 0.95
logStdMethod · 0.95
cmdCdMethod · 0.95
doCmdCmpMethod · 0.95
cmdEnvMethod · 0.95
cmdStopMethod · 0.95
cmdGoFunction · 0.80
mustBlockFunction · 0.80
TestMutexExcludesFunction · 0.80
TestReadWaitsForLockFunction · 0.80
lockFunction · 0.80
rLockFunction · 0.80

Calls

no outgoing calls

Tested by 9

mustBlockFunction · 0.64
TestMutexExcludesFunction · 0.64
TestReadWaitsForLockFunction · 0.64
lockFunction · 0.64
rLockFunction · 0.64
unlockFunction · 0.64
mustTempFileFunction · 0.64
mustOpenFunction · 0.64
mustBlockFunction · 0.64