()
| 145 | } |
| 146 | |
| 147 | func (as *accumulatedStats) buildResp() *testpb.LoadBalancerAccumulatedStatsResponse { |
| 148 | as.mu.Lock() |
| 149 | defer as.mu.Unlock() |
| 150 | return &testpb.LoadBalancerAccumulatedStatsResponse{ |
| 151 | NumRpcsStartedByMethod: copyStatsMap(as.numRPCsStartedByMethod), |
| 152 | NumRpcsSucceededByMethod: copyStatsMap(as.numRPCsSucceededByMethod), |
| 153 | NumRpcsFailedByMethod: copyStatsMap(as.numRPCsFailedByMethod), |
| 154 | StatsPerMethod: as.makeStatsMap(), |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | func (as *accumulatedStats) startRPC(rpcType string) { |
| 159 | as.mu.Lock() |
nothing calls this directly
no test coverage detected