(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestManagerDuplicate(t *testing.T) { |
| 57 | m := NewAppManager(nil) |
| 58 | |
| 59 | first := &mockService{serviceName: "first", serviceType: "mock"} |
| 60 | m.Add(first) |
| 61 | m.Add(first) |
| 62 | assert.Len(t, m.Services(), 1, "expected 1 service in the list") |
| 63 | } |
| 64 | |
| 65 | func TestManagerErrorChannel(t *testing.T) { |
| 66 | errChan := make(chan error) |
nothing calls this directly
no test coverage detected