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

Method TestServerStatsServerStreamRPC

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

Source from the content-addressed store, hash-verified

971}
972
973func (s) TestServerStatsServerStreamRPC(t *testing.T) {
974 count := 5
975 checkFuncs := []func(t *testing.T, d *gotData, e *expectedData){
976 checkInHeader,
977 checkBegin,
978 checkInPayload,
979 checkOutHeader,
980 }
981 ioPayFuncs := []func(t *testing.T, d *gotData, e *expectedData){
982 checkOutPayload,
983 }
984 for i := 0; i < count; i++ {
985 checkFuncs = append(checkFuncs, ioPayFuncs...)
986 }
987 checkFuncs = append(checkFuncs,
988 checkOutTrailer,
989 checkEnd,
990 )
991 testServerStats(t, &testConfig{compress: "gzip"}, &rpcConfig{count: count, success: true, callType: serverStreamRPC}, checkFuncs)
992}
993
994func (s) TestServerStatsServerStreamRPCError(t *testing.T) {
995 count := 5

Callers

nothing calls this directly

Calls 1

testServerStatsFunction · 0.85

Tested by

no test coverage detected