(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestFindRouteExactHostMatch(t *testing.T) { |
| 93 | ep := NewTestEntrypoint(t, nil) |
| 94 | |
| 95 | tests := []string{ |
| 96 | "app2.com", |
| 97 | "app2.domain.com", |
| 98 | "app2.sub.domain.com", |
| 99 | } |
| 100 | testsNoMatch := []string{ |
| 101 | "sub.app2.com", |
| 102 | "app1.com", |
| 103 | "app1.domain.com", |
| 104 | "app1.sub.domain.com", |
| 105 | } |
| 106 | |
| 107 | for _, test := range tests { |
| 108 | addRoute(t, test) |
| 109 | } |
| 110 | |
| 111 | run(t, ep, tests, testsNoMatch) |
| 112 | } |
| 113 | |
| 114 | func TestFindRouteByDomains(t *testing.T) { |
| 115 | ep := NewTestEntrypoint(t, nil) |
nothing calls this directly
no test coverage detected