MCPcopy
hub / github.com/yusing/godoxy / TestRoutesByProvider

Function TestRoutesByProvider

internal/entrypoint/entrypoint_test.go:326–339  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

324}
325
326func TestRoutesByProvider(t *testing.T) {
327 ep := NewTestEntrypoint(t, nil)
328
329 // Add routes with provider info
330 addRoute(t, "app1")
331 addRoute(t, "app2")
332
333 byProvider := ep.RoutesByProvider()
334 expect.Equal(t, 1, len(byProvider)) // All routes are from same implicit provider
335
336 routes, ok := byProvider[""]
337 expect.True(t, ok)
338 expect.Equal(t, 2, len(routes))
339}
340
341func TestNumRoutes(t *testing.T) {
342 ep := NewTestEntrypoint(t, nil)

Callers

nothing calls this directly

Calls 3

NewTestEntrypointFunction · 0.85
addRouteFunction · 0.85
RoutesByProviderMethod · 0.65

Tested by

no test coverage detected