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

Function TestFindRouteAnyDomain

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

Source from the content-addressed store, hash-verified

70}
71
72func 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
92func TestFindRouteExactHostMatch(t *testing.T) {
93 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