(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func Test_HasConfiguredServices(t *testing.T) { |
| 186 | testHasConfiguredServicesFn := func(t *testing.T, app *App, expected bool) { |
| 187 | t.Helper() |
| 188 | |
| 189 | result := app.hasConfiguredServices() |
| 190 | require.Equal(t, expected, result) |
| 191 | } |
| 192 | |
| 193 | t.Run("no-services", func(t *testing.T) { |
| 194 | testHasConfiguredServicesFn(t, &App{configured: Config{}}, false) |
| 195 | }) |
| 196 | |
| 197 | t.Run("has-services", func(t *testing.T) { |
| 198 | testHasConfiguredServicesFn(t, &App{configured: Config{Services: []Service{&mockService{name: "test-dep"}}}}, true) |
| 199 | }) |
| 200 | } |
| 201 | |
| 202 | func Test_InitServices(t *testing.T) { |
| 203 | t.Parallel() |
nothing calls this directly
no test coverage detected