MCPcopy
hub / github.com/rclone/rclone / logPrintf

Method logPrintf

cmd/bisync/bisync_test.go:1944–1951  ·  view source on GitHub ↗

logPrintf prints a message to stdout and to the test log

(text string, args ...any)

Source from the content-addressed store, hash-verified

1942
1943// logPrintf prints a message to stdout and to the test log
1944func (b *bisyncTest) logPrintf(text string, args ...any) {
1945 line := fmt.Sprintf(text, args...)
1946 fs.Log(nil, line)
1947 if b.logFile != nil {
1948 _, err := fmt.Fprintln(b.logFile, line)
1949 require.NoError(b.t, err, "writing log file")
1950 }
1951}
1952
1953// account for filename encoding differences between remotes by normalizing to OS encoding
1954func normalizeEncoding(s string) string {

Callers 4

runTestCaseMethod · 0.95
runTestStepMethod · 0.95
runBisyncMethod · 0.95
listSubdirsMethod · 0.95

Calls 1

LogFunction · 0.92

Tested by

no test coverage detected