MCPcopy
hub / github.com/caddyserver/caddy / BenchmarkOpenResponseWriter

Function BenchmarkOpenResponseWriter

modules/caddyhttp/encode/encode_test.go:16–21  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

14)
15
16func BenchmarkOpenResponseWriter(b *testing.B) {
17 enc := new(Encode)
18 for b.Loop() {
19 enc.openResponseWriter("test", nil, false)
20 }
21}
22
23func TestPreferOrder(t *testing.T) {
24 testCases := []struct {

Callers

nothing calls this directly

Calls 1

openResponseWriterMethod · 0.80

Tested by

no test coverage detected