MCPcopy Create free account
hub / github.com/Enapiuz/multiwatch / TestPrinter_RegisterWatchers

Function TestPrinter_RegisterWatchers

printer/printer_test.go:35–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestPrinter_RegisterWatchers(t *testing.T) {
36 testPrinter := NewPrinter()
37 dumbWatcher := &WatcherMock{}
38 testPrinter.RegisterWatchers([]watcher.Interface{dumbWatcher})
39 assert.Len(t, testPrinter.watchers, 1)
40}
41
42func TestPrinter_Start(t *testing.T) {
43 rescueStdout := os.Stdout

Callers

nothing calls this directly

Calls 2

RegisterWatchersMethod · 0.95
NewPrinterFunction · 0.85

Tested by

no test coverage detected