MCPcopy
hub / github.com/gofiber/fiber / Test_HasConfiguredServices

Function Test_HasConfiguredServices

services_test.go:185–200  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func 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
202func Test_InitServices(t *testing.T) {
203 t.Parallel()

Callers

nothing calls this directly

Calls 1

hasConfiguredServicesMethod · 0.80

Tested by

no test coverage detected