MCPcopy
hub / github.com/keploy/keploy / TestCreateTypeResolver

Function TestCreateTypeResolver

utils/grpc_test.go:37–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestCreateTypeResolver(t *testing.T) {
38 // Test that the type resolver creation doesn't panic with nil input
39 types := createTypeResolver(nil)
40 if types == nil {
41 t.Error("Expected non-nil type resolver")
42 }
43
44 // Test with empty slice
45 types = createTypeResolver([]protoreflect.FileDescriptor{})
46 if types == nil {
47 t.Error("Expected non-nil type resolver")
48 }
49}

Callers

nothing calls this directly

Calls 2

createTypeResolverFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected