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

Function TestNumRoutes

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

Source from the content-addressed store, hash-verified

339}
340
341func TestNumRoutes(t *testing.T) {
342 ep := NewTestEntrypoint(t, nil)
343
344 expect.Equal(t, 0, ep.NumRoutes())
345
346 addRoute(t, "app1")
347 expect.Equal(t, 1, ep.NumRoutes())
348
349 addRoute(t, "app2")
350 expect.Equal(t, 2, ep.NumRoutes())
351}
352
353func TestIterRoutes(t *testing.T) {
354 ep := NewTestEntrypoint(t, nil)

Callers

nothing calls this directly

Calls 3

NewTestEntrypointFunction · 0.85
addRouteFunction · 0.85
NumRoutesMethod · 0.65

Tested by

no test coverage detected