(t *testing.T)
| 277 | |
| 278 | func TestResponseHeaders_module(t *testing.T) { testResponseHeaders(t, nil) } |
| 279 | func TestResponseHeaders_worker(t *testing.T) { |
| 280 | testResponseHeaders(t, &testOptions{workerScript: "response-headers.php"}) |
| 281 | } |
| 282 | func testResponseHeaders(t *testing.T, opts *testOptions) { |
| 283 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 284 | body, resp := testGet(fmt.Sprintf("http://example.com/response-headers.php?i=%d", i), handler, t) |
nothing calls this directly
no test coverage detected