(b *testing.B)
| 198 | } |
| 199 | |
| 200 | func BenchmarkGRPCPercentEncoding(b *testing.B) { |
| 201 | input := "Hello, 世界" |
| 202 | want := "Hello, %E4%B8%96%E7%95%8C" |
| 203 | b.ReportAllocs() |
| 204 | for b.Loop() { |
| 205 | got := grpcPercentEncode(input) |
| 206 | if got != want { |
| 207 | b.Fatalf("grpcPercentEncode(%q) = %s, want %s", input, got, want) |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | func BenchmarkGRPCPercentDecoding(b *testing.B) { |
| 213 | input := "Hello, %E4%B8%96%E7%95%8C" |
nothing calls this directly
no test coverage detected