MCPcopy Create free account
hub / github.com/bufbuild/buf / testMessageName

Function testMessageName

private/bufpkg/bufprotosource/bufprotosource_test.go:61–70  ·  view source on GitHub ↗
(t *testing.T, nameToExpectedNestedName map[string]string, message Message)

Source from the content-addressed store, hash-verified

59}
60
61func testMessageName(t *testing.T, nameToExpectedNestedName map[string]string, message Message) {
62 expectedName, ok := nameToExpectedNestedName[message.Name()]
63 require.True(t, ok)
64 require.Equal(t, expectedName, message.NestedName())
65 for _, nestedMessage := range message.Messages() {
66 testMessageName(t, nameToExpectedNestedName, nestedMessage)
67 _, err := message.AsDescriptor()
68 require.NoError(t, err)
69 }
70}

Callers 1

TestNewFilesFunction · 0.85

Calls 4

NameMethod · 0.65
NestedNameMethod · 0.65
MessagesMethod · 0.65
AsDescriptorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…