(t *testing.T, m1, m2 map[State][]Service)
| 264 | } |
| 265 | |
| 266 | func equalStatesMap(t *testing.T, m1, m2 map[State][]Service) { |
| 267 | t.Helper() |
| 268 | |
| 269 | states := []State{New, Starting, Running, Stopping, Terminated, Failed} |
| 270 | |
| 271 | for _, s := range states { |
| 272 | require.ElementsMatch(t, m1[s], m2[s], s) |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | func serviceThatFailsToStart() Service { |
| 277 | return NewBasicService(func(serviceContext context.Context) error { |
no outgoing calls
no test coverage detected