(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func 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 | |
| 42 | func TestPrinter_Start(t *testing.T) { |
| 43 | rescueStdout := os.Stdout |
nothing calls this directly
no test coverage detected