(t *testing.T)
| 261 | |
| 262 | func TestHeaders_module(t *testing.T) { testHeaders(t, nil) } |
| 263 | func TestHeaders_worker(t *testing.T) { testHeaders(t, &testOptions{workerScript: "headers.php"}) } |
| 264 | func testHeaders(t *testing.T, opts *testOptions) { |
| 265 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 266 | body, resp := testGet(fmt.Sprintf("http://example.com/headers.php?i=%d", i), handler, t) |
nothing calls this directly
no test coverage detected