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

Function TestGetRoute

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

Source from the content-addressed store, hash-verified

366}
367
368func TestGetRoute(t *testing.T) {
369 ep := NewTestEntrypoint(t, nil)
370
371 // Route not found case
372 _, ok := ep.GetRoute("nonexistent")
373 expect.False(t, ok)
374
375 addRoute(t, "app1")
376
377 route, ok := ep.GetRoute("app1")
378 expect.True(t, ok)
379 expect.NotNil(t, route)
380}
381
382func TestHTTPRoutesPool(t *testing.T) {
383 ep := NewTestEntrypoint(t, nil)

Callers

nothing calls this directly

Calls 3

NewTestEntrypointFunction · 0.85
addRouteFunction · 0.85
GetRouteMethod · 0.65

Tested by

no test coverage detected