(t *testing.T)
| 690 | |
| 691 | func TestRequestHeaders_module(t *testing.T) { testRequestHeaders(t, &testOptions{}) } |
| 692 | func TestRequestHeaders_worker(t *testing.T) { |
| 693 | testRequestHeaders(t, &testOptions{workerScript: "request-headers.php"}) |
| 694 | } |
| 695 | func testRequestHeaders(t *testing.T, opts *testOptions) { |
| 696 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) { |
| 697 | req := httptest.NewRequest("GET", fmt.Sprintf("http://example.com/request-headers.php?i=%d", i), nil) |
nothing calls this directly
no test coverage detected