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

Function doSuccessfulUnaryCall

test/channelz_test.go:801–807  ·  view source on GitHub ↗
(tc testgrpc.TestServiceClient, t *testing.T)

Source from the content-addressed store, hash-verified

799}
800
801func doSuccessfulUnaryCall(tc testgrpc.TestServiceClient, t *testing.T) {
802 ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
803 defer cancel()
804 if _, err := tc.EmptyCall(ctx, &testpb.Empty{}); err != nil {
805 t.Fatalf("TestService/EmptyCall(_, _) = _, %v, want _, <nil>", err)
806 }
807}
808
809func doStreamingInputCallWithLargePayload(tc testgrpc.TestServiceClient, t *testing.T) {
810 ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)

Calls 2

EmptyCallMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected