MCPcopy Index your code
hub / github.com/coder/coder / MustCompile

Method MustCompile

coderd/httpmw/patternmatcher/routepatterns.go:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22type RoutePatterns []string
23
24func (rp RoutePatterns) MustCompile() *regexp.Regexp {
25 re, err := rp.Compile()
26 if err != nil {
27 panic(err)
28 }
29 return re
30}
31
32func (rp RoutePatterns) Compile() (*regexp.Regexp, error) {
33 patterns := make([]string, len(rp))

Callers 15

TestExternalAuthCallbackFunction · 0.80
coderd.goFile · 0.80
TestGetChatDiffStatusFunction · 0.80
TestGetChatDiffContentsFunction · 0.80
CSRFFunction · 0.80
Test_RoutePatternsFunction · 0.80
normalizeGoldenEmailFunction · 0.80
normalizeGoldenWebhookFunction · 0.80
azureidentity.goFile · 0.80
chatlabels.goFile · 0.80

Calls 1

CompileMethod · 0.95

Tested by 15

TestExternalAuthCallbackFunction · 0.64
TestGetChatDiffStatusFunction · 0.64
TestGetChatDiffContentsFunction · 0.64
Test_RoutePatternsFunction · 0.64
normalizeGoldenEmailFunction · 0.64
normalizeGoldenWebhookFunction · 0.64
TestMarshalJSONEmptyFunction · 0.64
TestGroupSyncTableFunction · 0.64
extractWhereClauseFunction · 0.64