MCPcopy
hub / github.com/opencontainers/runc / TestLoggingToFile

Function TestLoggingToFile

libcontainer/logs/logs_linux_test.go:15–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13const msgErr = `"level":"error"`
14
15func TestLoggingToFile(t *testing.T) {
16 l := runLogForwarding(t)
17
18 msg := `"level":"info","msg":"kitten"`
19 logToLogWriter(t, l, msg)
20 finish(t, l)
21 check(t, l, msg, msgErr)
22}
23
24func TestLogForwardingDoesNotStopOnJsonDecodeErr(t *testing.T) {
25 l := runLogForwarding(t)

Callers

nothing calls this directly

Calls 4

runLogForwardingFunction · 0.85
logToLogWriterFunction · 0.85
finishFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…