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

Function TestFindRouteExactHostMatch

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

Source from the content-addressed store, hash-verified

90}
91
92func 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
114func TestFindRouteByDomains(t *testing.T) {
115 ep := NewTestEntrypoint(t, nil)

Callers

nothing calls this directly

Calls 3

NewTestEntrypointFunction · 0.85
addRouteFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected