(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestNewCallStat(t *testing.T) { |
| 11 | var stat = rpc.NewCallStat(10) |
| 12 | stat.Add(true, 1) |
| 13 | stat.Add(true, 2) |
| 14 | stat.Add(true, 3) |
| 15 | stat.Add(false, 4) |
| 16 | stat.Add(true, 0) |
| 17 | stat.Add(true, 1) |
| 18 | t.Log(stat.Sum()) |
| 19 | } |
nothing calls this directly
no test coverage detected