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

Method TestServerStatsUnaryRPC

stats/stats_test.go:917–927  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

915}
916
917func (s) TestServerStatsUnaryRPC(t *testing.T) {
918 testServerStats(t, &testConfig{compress: ""}, &rpcConfig{success: true, callType: unaryRPC}, []func(t *testing.T, d *gotData, e *expectedData){
919 checkInHeader,
920 checkBegin,
921 checkInPayload,
922 checkOutHeader,
923 checkOutPayload,
924 checkOutTrailer,
925 checkEnd,
926 })
927}
928
929func (s) TestServerStatsUnaryRPCError(t *testing.T) {
930 testServerStats(t, &testConfig{compress: ""}, &rpcConfig{success: false, callType: unaryRPC}, []func(t *testing.T, d *gotData, e *expectedData){

Callers

nothing calls this directly

Calls 1

testServerStatsFunction · 0.85

Tested by

no test coverage detected