(t *testing.T)
| 366 | } |
| 367 | |
| 368 | func 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 | |
| 382 | func TestHTTPRoutesPool(t *testing.T) { |
| 383 | ep := NewTestEntrypoint(t, nil) |
nothing calls this directly
no test coverage detected