MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / TestSchemaForMessage_EmptyRequest

Function TestSchemaForMessage_EmptyRequest

internal/mcp/schema_test.go:39–44  ·  view source on GitHub ↗

TestSchemaForMessage_EmptyRequest — MetaRequest has no fields.

(t *testing.T)

Source from the content-addressed store, hash-verified

37
38// TestSchemaForMessage_EmptyRequest — MetaRequest has no fields.
39func TestSchemaForMessage_EmptyRequest(t *testing.T) {
40 md := (&authorizerv1.MetaRequest{}).ProtoReflect().Descriptor()
41 s := schemaForMessage(md)
42 assert.Equal(t, "object", s.Type)
43 assert.Empty(t, s.Properties)
44}
45
46// TestSchemaForMessage_CycleSafe — google.protobuf.Value references itself
47// via repeated Value (ListValue.values). Before the cycle-guard fix, exposing

Callers

nothing calls this directly

Calls 3

schemaForMessageFunction · 0.85
DescriptorMethod · 0.45
ProtoReflectMethod · 0.45

Tested by

no test coverage detected