MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / compilePath

Function compilePath

internal/descriptor/services_test.go:14–20  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

12)
13
14func compilePath(t *testing.T, path string) httprule.Template {
15 parsed, err := httprule.Parse(path)
16 if err != nil {
17 t.Fatalf("httprule.Parse(%q) failed with %v; want success", path, err)
18 }
19 return parsed.Compile()
20}
21
22func testExtractServices(t *testing.T, input []*descriptorpb.FileDescriptorProto, target string, wantSvcs []*Service) {
23 testExtractServicesWithRegistry(t, NewRegistry(), input, target, wantSvcs)

Calls 2

ParseFunction · 0.92
CompileMethod · 0.65

Tested by

no test coverage detected