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

Function loadFile

internal/descriptor/registry_test.go:39–43  ·  view source on GitHub ↗
(t *testing.T, reg *Registry, src string)

Source from the content-addressed store, hash-verified

37}
38
39func loadFile(t *testing.T, reg *Registry, src string) *descriptorpb.FileDescriptorProto {
40 t.Helper()
41 fds := loadFileWithCodeGeneratorRequest(t, reg, &pluginpb.CodeGeneratorRequest{}, src)
42 return fds[0]
43}
44
45func TestLoadFile(t *testing.T) {
46 reg := NewRegistry()

Callers 10

TestLoadFileFunction · 0.85
TestLoadFileWithDirFunction · 0.85
TestLoadWithStandaloneFunction · 0.85

Calls 1

Tested by

no test coverage detected