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

Function checkStats

balancer/grpclb/grpclb_test.go:1389–1394  ·  view source on GitHub ↗
(stats, expected *rpcStats)

Source from the content-addressed store, hash-verified

1387}
1388
1389func checkStats(stats, expected *rpcStats) error {
1390 if !stats.equal(expected) {
1391 return fmt.Errorf("stats not equal: got %+v, want %+v", stats, expected)
1392 }
1393 return nil
1394}
1395
1396func runAndCheckStats(t *testing.T, drop bool, statsChan chan *lbpb.ClientStats, runRPCs func(*grpc.ClientConn), statsWant *rpcStats) error {
1397 r := manual.NewBuilderWithScheme("whatever")

Callers 1

runAndCheckStatsFunction · 0.85

Calls 2

equalMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected