MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / TestGetFileDescriptorSet

Function TestGetFileDescriptorSet

bsr/api-access/example/example_test.go:24–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func TestGetFileDescriptorSet(t *testing.T) {
25 t.Parallel()
26
27 res, err := Example()
28
29 require.NoError(t, err)
30
31 fds := res.GetFileDescriptorSet()
32 require.NotNil(t, fds)
33
34 files := fds.GetFile()
35 require.Len(t, files, 1)
36 assert.Equal(t, "connectrpc/eliza/v1/eliza.proto", files[0].GetName())
37}

Callers

nothing calls this directly

Calls 2

ExampleFunction · 0.85
GetNameMethod · 0.45

Tested by

no test coverage detected