MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / Logf

Method Logf

src/testing/testing.go:248–248  ·  view source on GitHub ↗

Logf formats its arguments according to the format, analogous to Printf, and records the text in the error log. A final newline is added if not provided. For tests, the text will be printed only if the test fails or the -test.v flag is set. For benchmarks, the text is always printed to avoid having

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

246// set. For benchmarks, the text is always printed to avoid having performance
247// depend on the value of the -test.v flag.
248func (c *common) Logf(format string, args ...interface{}) { c.log(fmt.Sprintf(format, args...)) }
249
250// Error is equivalent to Log followed by Fail.
251func (c *common) Error(args ...interface{}) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected