(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestFindRouteAnyDomain(t *testing.T) { |
| 73 | ep := NewTestEntrypoint(t, nil) |
| 74 | |
| 75 | addRoute(t, "app1") |
| 76 | |
| 77 | tests := []string{ |
| 78 | "app1.com", |
| 79 | "app1.domain.com", |
| 80 | "app1.sub.domain.com", |
| 81 | } |
| 82 | testsNoMatch := []string{ |
| 83 | "sub.app1.com", |
| 84 | "app2.com", |
| 85 | "app2.domain.com", |
| 86 | "app2.sub.domain.com", |
| 87 | } |
| 88 | |
| 89 | run(t, ep, tests, testsNoMatch) |
| 90 | } |
| 91 | |
| 92 | func TestFindRouteExactHostMatch(t *testing.T) { |
| 93 | ep := NewTestEntrypoint(t, nil) |
nothing calls this directly
no test coverage detected