MCPcopy
hub / github.com/kopia/kopia / getLogOutputPrefix

Method getLogOutputPrefix

tests/testenv/cli_test_env.go:168–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168func (e *CLITest) getLogOutputPrefix() (string, bool) {
169 e.logMu.RLock()
170 defer e.logMu.RUnlock()
171
172 return e.logOutputPrefix, os.Getenv("KOPIA_TEST_LOG_OUTPUT") != "" || e.logOutputEnabled
173}
174
175// RunAndProcessStderr runs the given command, and streams its stderr line-by-line to stderrCallback until it returns false.
176func (e *CLITest) RunAndProcessStderr(tb testing.TB, stderrCallback func(line string) bool, args ...string) (wait func() error, kill func()) {

Callers 2

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected