MCPcopy
hub / github.com/kopia/kopia / TestUITask_withPersistentLogging

Function TestUITask_withPersistentLogging

internal/uitask/uitask_test.go:36–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestUITask_withPersistentLogging(t *testing.T) {
37 var logBuf bytes.Buffer
38
39 ctx := logging.WithLogger(context.Background(), logging.ToWriter(&logBuf))
40
41 m := uitask.NewManager(true)
42 testUITaskInternal(t, ctx, m)
43 require.Equal(t, "first\nthis is ignored\niii\nwww\neee\n", logBuf.String())
44}
45
46//nolint:thelper
47func testUITaskInternal(t *testing.T, ctx context.Context, m *uitask.Manager) {

Callers

nothing calls this directly

Calls 6

WithLoggerFunction · 0.92
ToWriterFunction · 0.92
NewManagerFunction · 0.92
testUITaskInternalFunction · 0.85
EqualMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected