| 8 | ) |
| 9 | |
| 10 | type MockComponent struct { |
| 11 | name string |
| 12 | startErr error |
| 13 | stopErr error |
| 14 | startDelay time.Duration |
| 15 | stopDelay time.Duration |
| 16 | startCalled atomic.Int32 |
| 17 | stopCalled atomic.Int32 |
| 18 | } |
| 19 | |
| 20 | func NewMockComponent(name string) *MockComponent { |
| 21 | return &MockComponent{ |
nothing calls this directly
no outgoing calls
no test coverage detected