MCPcopy
hub / github.com/grpc/grpc-go / DoUnimplementedMethod

Function DoUnimplementedMethod

interop/test_utils.go:642–647  ·  view source on GitHub ↗

DoUnimplementedMethod attempts to call an unimplemented method.

(ctx context.Context, cc *grpc.ClientConn)

Source from the content-addressed store, hash-verified

640
641// DoUnimplementedMethod attempts to call an unimplemented method.
642func DoUnimplementedMethod(ctx context.Context, cc *grpc.ClientConn) {
643 var req, reply proto.Message
644 if err := cc.Invoke(ctx, "/grpc.testing.TestService/UnimplementedCall", req, reply); err == nil || status.Code(err) != codes.Unimplemented {
645 logger.Fatalf("ClientConn.Invoke(_, _, _, _, _) = %v, want error code %s", err, codes.Unimplemented)
646 }
647}
648
649// DoPickFirstUnary runs multiple RPCs (rpcCount) and checks that all requests
650// are sent to the same backend.

Callers 1

mainFunction · 0.92

Calls 3

CodeFunction · 0.92
InvokeMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected